summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
index 990e2f4062..c68f75882c 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
+++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp
@@ -232,15 +232,13 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
{
Parent->ClearStatusBar();
- if (Core::GetState() == Core::CORE_UNINITIALIZED)
- {
- // TODO: disable menu items instead :P
- return;
- }
+ if (Core::GetState() == Core::CORE_UNINITIALIZED) return;
+
std::string mapfile = CBoot::GenerateMapFilename();
switch (event.GetId())
{
case IDM_CLEARSYMBOLS:
+ if(!AskYesNo("Do you want to clear the list of symbol names?", "Confirm", wxYES_NO)) return;
g_symbolDB.Clear();
Host_NotifyMapLoaded();
break;
@@ -253,9 +251,16 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
PPCAnalyst::FindFunctions(0x80000000, 0x80400000, &g_symbolDB);
SignatureDB db;
if (db.Load((File::GetSysDirectory() + TOTALDB).c_str()))
+ {
db.Apply(&g_symbolDB);
-
+ Parent->StatusBarMessage("Generated symbol names from '%s'", TOTALDB);
+ }
+ else
+ {
+ Parent->StatusBarMessage("'%s' not found, no symbol names generated", TOTALDB);
+ }
// HLE::PatchFunctions();
+ // Update GUI
NotifyMapLoaded();
break;
}