summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindow.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-10-27 21:27:23 +0000
committerhrydgard <hrydgard@gmail.com>2008-10-27 21:27:23 +0000
commitd35fb4e2b0aedcb494f5769dc6c8e437e306238a (patch)
treed10a0748f7c480e2c6899ce4458b0e9d6ee7ed1b /Source/Core/DebuggerWX/Src/CodeWindow.cpp
parent0ca6a4021b0ed96be48cda29c484c15556b8c283 (diff)
Small codewindow tweaks
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@980 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindow.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp
index bf0ee6b8b1..1499c7a9ad 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp
+++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp
@@ -41,6 +41,7 @@
#include "FileUtil.h"
#include "Core.h"
+#include "HLE/HLE.h"
#include "Boot/Boot.h"
#include "LogManager.h"
#include "HW/CPU.h"
@@ -102,6 +103,7 @@ BEGIN_EVENT_TABLE(CCodeWindow, wxFrame)
EVT_MENU(IDM_SAVEMAPFILE, CCodeWindow::OnSymbolsMenu)
EVT_MENU(IDM_CREATESIGNATUREFILE, CCodeWindow::OnSymbolsMenu)
EVT_MENU(IDM_USESIGNATUREFILE, CCodeWindow::OnSymbolsMenu)
+ EVT_MENU(IDM_PATCHHLEFUNCTIONS, CCodeWindow::OnSymbolsMenu)
EVT_MENU(IDM_CLEARCODECACHE, CCodeWindow::OnJitMenu)
EVT_MENU(IDM_LOGINSTRUCTIONS, CCodeWindow::OnJitMenu)
@@ -394,6 +396,8 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam
pSymbolsMenu->AppendSeparator();
pSymbolsMenu->Append(IDM_CREATESIGNATUREFILE, _T("&Create signature file..."));
pSymbolsMenu->Append(IDM_USESIGNATUREFILE, _T("&Use signature file..."));
+ pSymbolsMenu->AppendSeparator();
+ pSymbolsMenu->Append(IDM_PATCHHLEFUNCTIONS, _T("&Patch HLE functions"));
pMenuBar->Append(pSymbolsMenu, _T("&Symbols"));
}
@@ -419,13 +423,13 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam
bool CCodeWindow::UseInterpreter()
{
- return(GetMenuBar()->IsChecked(IDM_INTERPRETER));
+ return GetMenuBar()->IsChecked(IDM_INTERPRETER);
}
bool CCodeWindow::UseDualCore()
{
- return(GetMenuBar()->IsChecked(IDM_DUALCORE));
+ return GetMenuBar()->IsChecked(IDM_DUALCORE);
}
@@ -504,6 +508,7 @@ void CCodeWindow::OnProfilerMenu(wxCommandEvent& event)
break;
case IDM_WRITEPROFILE:
Profiler::WriteProfileResults("profiler.txt");
+ File::Launch("profiler.txt");
break;
}
}
@@ -532,6 +537,8 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
SignatureDB db;
if (db.Load("data/totaldb.dsy"))
db.Apply(&g_symbolDB);
+
+ // HLE::PatchFunctions();
NotifyMapLoaded();
break;
}
@@ -584,6 +591,10 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
}
NotifyMapLoaded();
break;
+ case IDM_PATCHHLEFUNCTIONS:
+ HLE::PatchFunctions();
+ Update();
+ break;
}
}