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
This commit is contained in:
XTra.KrazzY 2009-04-24 15:31:13 +00:00
parent 92e6d7c283
commit e0a202b7ef
4 changed files with 388 additions and 3 deletions

View file

@ -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;
}