Move debugger function list reset to when the debugger breaks in to the code. Stops a long freeze when first launching a game

This commit is contained in:
refractionpcsx2 2020-05-02 03:41:42 +01:00
parent f0d08aa7d0
commit ea52da9428
2 changed files with 5 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void SysCoreThread::GameStartingInThread()
MIPSAnalyst::ScanForFunctions(ElfTextRange.first,ElfTextRange.first+ElfTextRange.second,true);
symbolMap.UpdateActiveSymbols();
sApp.PostAppMethod(&Pcsx2App::resetDebugger);
//sApp.PostAppMethod(&Pcsx2App::resetDebugger);
ApplyLoadedPatches(PPT_ONCE_ON_LOAD);
#ifdef USE_SAVESLOT_UI_UPDATES

View File

@ -22,6 +22,7 @@
#include "DebugTools/MipsStackWalk.h"
#include "BreakpointWindow.h"
#include "PathDefs.h"
#include "wx/busyinfo.h"
#ifdef _WIN32
#include <Windows.h>
@ -610,6 +611,9 @@ void DisassemblyDialog::setDebugMode(bool debugMode, bool switchPC)
if (debugMode)
{
wxBusyInfo wait("Please wait, Reading ELF functions");
reset();
wait.~wxBusyInfo();
CBreakPoints::ClearTemporaryBreakPoints();
breakRunButton->SetLabel(L"Run");