summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp b/Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp
index 69cee04db5..7f98af6c57 100644
--- a/Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp
+++ b/Source/Core/DolphinWX/Src/Debugger/JitWindow.cpp
@@ -37,6 +37,7 @@
#include "Core.h"
#include "StringUtil.h"
#include "LogManager.h"
+#include "../WxUtils.h"
#include "../Globals.h"
@@ -119,9 +120,9 @@ void CJitWindow::Compare(u32 em_address)
}
// Do not merge this "if" with the above - block_num changes inside it.
if (block_num < 0) {
- ppc_box->SetValue(wxString::FromAscii(StringFromFormat("(non-code address: %08x)",
- em_address).c_str()));
- x86_box->SetValue(wxString::FromAscii(StringFromFormat("(no translation)").c_str()));
+ ppc_box->SetValue(StrToWxStr(StringFromFormat("(non-code address: %08x)",
+ em_address)));
+ x86_box->SetValue(StrToWxStr(StringFromFormat("(no translation)")));
delete[] xDis;
return;
}
@@ -150,7 +151,7 @@ void CJitWindow::Compare(u32 em_address)
*sptr++ = 10;
num_x86_instructions++;
}
- x86_box->SetValue(wxString::FromAscii((char*)xDis));
+ x86_box->SetValue(StrToWxStr((char*)xDis));
// == Fill in ppc box
u32 ppc_addr = block->originalAddress;
@@ -189,11 +190,11 @@ void CJitWindow::Compare(u32 em_address)
sptr += sprintf(sptr, "Num bytes: PPC: %i x86: %i (blowup: %i%%)\n",
size * 4, block->codeSize, 100 * (block->codeSize / (4 * size) - 1));
- ppc_box->SetValue(wxString::FromAscii((char*)xDis));
+ ppc_box->SetValue(StrToWxStr((char*)xDis));
} else {
- ppc_box->SetValue(wxString::FromAscii(StringFromFormat(
- "(non-code address: %08x)", em_address).c_str()));
- x86_box->SetValue(wxString::FromAscii("---"));
+ ppc_box->SetValue(StrToWxStr(StringFromFormat(
+ "(non-code address: %08x)", em_address)));
+ x86_box->SetValue("---");
}
delete[] xDis;