Simplify logging a bit.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5497 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-05-26 21:07:13 +00:00
parent 810e6d53f0
commit 39a014353e
7 changed files with 17 additions and 62 deletions

View File

@ -575,8 +575,10 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event)
str = wxGetTextFromUser(_(""), wxT("Op?"), wxEmptyString, this);
for (u32 addr = 0x80000000; addr < 0x80100000; addr += 4) {
const char *name = PPCTables::GetInstructionName(Memory::ReadUnchecked_U32(addr));
if (name && !strcmp((const char *)str.mb_str(), name))
NOTICE_LOG(POWERPC, "Found %s at %08x", str.c_str(), addr);
if (name && !strcmp((const char *)str.mb_str(), name)) {
std::string mb_str(str.mb_str());
NOTICE_LOG(POWERPC, "Found %s at %08x", mb_str.c_str(), addr);
}
}
break;
}