diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-04-24 15:31:13 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-04-24 15:31:13 +0000 |
| commit | e0a202b7efaffe88e1550a50b8386cc428c33e86 (patch) | |
| tree | 0972259c5be68f383a85dfba48fc8c0c1a310b7e /Source/Core/DSPCore | |
| parent | 92e6d7c2830a35008c0642505ba73f73b6901158 (diff) | |
Made DSPTool more informative and actually fail when compile fails (right now it kept creating invalid files)
Also, created an example test which uses the INCLUDE directive. Tests are much shorter and human-readable now!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3064 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPCodeUtil.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp index 9160dae921..a31ddae8c9 100644 --- a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp +++ b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp @@ -35,8 +35,10 @@ bool Assemble(const char *text, std::vector<u16> *code) // TODO: fix the terrible api of the assembler.
DSPAssembler assembler(settings);
- if (!assembler.Assemble(text, code))
+ if (!assembler.Assemble(text, code)) {
printf("%s", assembler.GetErrorString().c_str());
+ return false;
+ }
return true;
}
|
