From 654f58244678cfc3af6d7e1d2cd5a1aa9fff42a0 Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Fri, 3 Mar 2017 05:18:33 -0500 Subject: [PATCH] Don't save watches and breakpoints on stop and load on boot Not only this is pretty pointless because there is a load and save button on the appropriate panels, but for the breakpoints one, it caused an error while mapping the memory since adding memory breakpoint requires to update the DBAT and this is done too early (right after boot). This also only worked if you had the right panel on making it even more useless because it would fail to laod if you didn't have the right panel on. It's better to just let the user click load and save. --- Source/Core/DolphinWX/FrameTools.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 535dc568aa..9972255ffd 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -310,13 +310,6 @@ void CFrame::BootGame(const std::string& filename) if (!bootfile.empty()) { StartGame(bootfile); - if (UseDebugger && g_pCodeWindow) - { - if (g_pCodeWindow->HasPanel()) - g_pCodeWindow->GetPanel()->LoadAll(); - if (g_pCodeWindow->HasPanel()) - g_pCodeWindow->GetPanel()->LoadAll(); - } } } @@ -844,11 +837,7 @@ void CFrame::DoStop() if (UseDebugger && g_pCodeWindow) { - if (g_pCodeWindow->HasPanel()) - g_pCodeWindow->GetPanel()->SaveAll(); PowerPC::watches.Clear(); - if (g_pCodeWindow->HasPanel()) - g_pCodeWindow->GetPanel()->SaveAll(); PowerPC::breakpoints.Clear(); PowerPC::memchecks.Clear(); if (g_pCodeWindow->HasPanel())