diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-03-28 12:28:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-28 12:28:21 -0700 |
| commit | fee2577e2515881f8c2dc38189a28670eba7027c (patch) | |
| tree | 268b89059549469f6e55b154d2c9a2a332433c62 /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | |
| parent | bcb1729dc9d3414b86e99138ca4477f674aab349 (diff) | |
| parent | 4cb84d06f0cd5b0cc7002b5257b4f830898a50d0 (diff) | |
Merge pull request #5088 from sepalani/mega_signature
SignatureDB: Support for WiiTools MEGA files added
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp | 17 |
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(); |
