summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
authorSepalani <sepalani@hotmail.fr>2017-05-21 01:00:36 +0100
committerSepalani <sepalani@hotmail.fr>2017-05-21 01:00:36 +0100
commit56f2d523dd8d487f49252621b6dbf78e4ad2a99e (patch)
treeab0a61896e0ab0317094f62a306e77efeccd7041 /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
parent643b218c1dbc26f619b2ed6dac29925bab85fccc (diff)
PPCSymbolDB: Split SaveMap function
Rewrite the code map file generation
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
index aaecd03d02..ffca4d0273 100644
--- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
@@ -287,7 +287,7 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
}
break;
case IDM_SAVEMAPFILE:
- g_symbolDB.SaveMap(writable_map_file);
+ g_symbolDB.SaveSymbolMap(writable_map_file);
break;
case IDM_SAVE_MAP_FILE_AS:
{
@@ -297,12 +297,17 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
wxFD_SAVE | wxFD_OVERWRITE_PROMPT, this);
if (!path.IsEmpty())
- g_symbolDB.SaveMap(WxStrToStr(path));
+ g_symbolDB.SaveSymbolMap(WxStrToStr(path));
}
break;
case IDM_SAVE_MAP_FILE_WITH_CODES:
- g_symbolDB.SaveMap(writable_map_file, true);
- break;
+ {
+ // Format the name for the codes version
+ const std::string path =
+ writable_map_file.substr(0, writable_map_file.find_last_of(".")) + "_code.map";
+ g_symbolDB.SaveCodeMap(path);
+ }
+ break;
case IDM_RENAME_SYMBOLS:
{