Auto-Pause At Function Call and System Call.

Would have a configuration window (with create the list, and enable/disable, being something similar to VFSManger and etc).
Move the code to Debug::AutoPause in AutoPause.cpp and AutoPause.h
It triggers currently in GameViewer, and would finally change to somewhere else.
Well and now it is all enabled (Function call + System call) by default.
This commit is contained in:
luxsie 2014-08-13 20:54:27 +08:00
parent 36ab30d3e9
commit ea00c3a07f
8 changed files with 175 additions and 49 deletions

View file

@ -1,4 +1,5 @@
#include "stdafx.h"
#include "Utilities/AutoPause.h"
#include "Utilities/Log.h"
#include "Emu/Memory/Memory.h"
#include "Emu/System.h"
@ -204,6 +205,9 @@ void GameViewer::DClick(wxListEvent& event)
const std::string& path = m_path + m_game_data[i].root;
Emu.Stop();
Debug::AutoPause::getInstance().Reload();
Emu.GetVFS().Init(path);
std::string local_path;
if (Emu.GetVFS().GetDevice(path, local_path) && !Emu.BootGame(local_path)) {