Completely fixed DSPTool, on all of its memory leaks, bad API and bad C++. (compiling with include works perfectly)

More small leftover fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3071 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-04-25 10:38:26 +00:00
parent 72febe7b8a
commit 1045fc7e98
14 changed files with 153 additions and 138 deletions

View file

@ -48,7 +48,7 @@ bool DumpDSPCode(const u8 *code_be, int size_in_bytes, u32 crc)
// Load the binary back in.
std::vector<u16> code;
LoadBinary(binFile, &code);
LoadBinary(binFile, code);
AssemblerSettings settings;
settings.show_hex = true;
@ -59,7 +59,7 @@ bool DumpDSPCode(const u8 *code_be, int size_in_bytes, u32 crc)
std::string text;
DSPDisassembler disasm(settings);
if (!disasm.Disassemble(0, code, &text))
if (!disasm.Disassemble(0, code, text))
return false;
return File::WriteStringToFile(true, text, txtFile);