diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-09-03 09:13:41 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-09-03 09:13:41 +0000 |
| commit | 8cd6e1d409c70fd2066b29b53c6960a231e1a8d7 (patch) | |
| tree | a4be5100ab39e5931857600fc19ddf73e7342c0c /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | |
| parent | 486798c580106914b2613683d6d967cb501f1294 (diff) | |
GUI: Made the symbols menu talk more
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4181 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 17 |
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; } |
