summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
authorSepalani <sepalani@hotmail.fr>2017-03-15 03:59:01 +0000
committerSepalani <sepalani@hotmail.fr>2017-03-28 20:16:09 +0100
commit4cb84d06f0cd5b0cc7002b5257b4f830898a50d0 (patch)
tree3a16de0f5848268725cc58d5112c4c3e0b126ab6 /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
parent85d74a506f6e4024ae1ffdf857d68ebed96fa4a9 (diff)
SignatureDB: Support for WiiTools MEGA files added
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
index 41ac840b9c..4c125c26e9 100644
--- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
@@ -34,6 +34,7 @@
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
#include "Core/PowerPC/Profiler.h"
+#include "Core/PowerPC/SignatureDB/MEGASignatureDB.h"
#include "Core/PowerPC/SignatureDB/SignatureDB.h"
#include "DolphinWX/Debugger/BreakpointWindow.h"
@@ -390,6 +391,22 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
}
}
break;
+ case IDM_USE_MEGA_SIGNATURE_FILE:
+ {
+ wxString path = wxFileSelector(
+ _("Apply MEGA signature file"), File::GetSysDirectory(), wxEmptyString, wxEmptyString,
+ _("MEGA Signature File (*.mega)") + "|*.mega|" + wxGetTranslation(wxALL_FILES),
+ wxFD_OPEN | wxFD_FILE_MUST_EXIST, this);
+ if (!path.IsEmpty())
+ {
+ MEGASignatureDB db;
+ db.Load(WxStrToStr(path));
+ db.Apply(&g_symbolDB);
+ db.List();
+ NotifyMapLoaded();
+ }
+ }
+ break;
case IDM_PATCH_HLE_FUNCTIONS:
HLE::PatchFunctions();
Repopulate();