mirror of https://github.com/PCSX2/pcsx2.git
Fix Linux build.
pcsx2/Dump.cpp: In function 'void iDumpBlock(u32, u32, uptr, u32)': pcsx2/Dump.cpp:258:4: error: cannot convert 'wxString' to 'const char*' for argument '1' to 'int system(const char*)' pcsx2/x86/iR3000A.cpp: In function 'void iIopDumpBlock(int, u8*)': pcsx2/x86/iR3000A.cpp:285:45: error: cannot convert 'wxString' to 'const char*' for argument '1' to 'int system(const char*)'
This commit is contained in:
parent
8e17f915c6
commit
ec3170752a
|
@ -253,8 +253,8 @@ void iDumpBlock(u32 ee_pc, u32 ee_size, uptr x86_pc, u32 x86_size)
|
|||
objdump.Close();
|
||||
|
||||
std::system(
|
||||
wxsFormat("objdump -D -b binary -mi386 --disassembler-options=intel --no-show-raw-insn --adjust-vma=%d %s >> %s",
|
||||
(u32) x86_pc, WX_STR(obj_filename), WX_STR(dump_filename))
|
||||
wxsFormat( L"objdump -D -b binary -mi386 --disassembler-options=intel --no-show-raw-insn --adjust-vma=%d %s >> %s",
|
||||
(u32) x86_pc, WX_STR(obj_filename), WX_STR(dump_filename)).mb_str()
|
||||
);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -281,8 +281,8 @@ static void iIopDumpBlock( int startpc, u8 * ptr )
|
|||
f2.Write( ptr, (uptr)x86Ptr - (uptr)ptr );
|
||||
}
|
||||
|
||||
std::system( wxsFormat("objdump -D -b binary -mi386 -M intel --no-show-raw-insn %s >> %s; rm %s",
|
||||
"mydump1", WX_STR(filename), "mydump1") );
|
||||
std::system( wxsFormat( L"objdump -D -b binary -mi386 -M intel --no-show-raw-insn %s >> %s; rm %s",
|
||||
"mydump1", WX_STR(filename), "mydump1").mb_str() );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue