mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-15 04:21:01 +00:00
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.
29 lines
642 B
C++
29 lines
642 B
C++
#pragma once
|
|
#include "Utilities/Log.h"
|
|
#include "Utilities/rFile.h"
|
|
#include "Emu/System.h"
|
|
|
|
//Regarded as a Debugger Enchantment
|
|
namespace Debug {
|
|
//To store the pause function/call id, and let those pause there.
|
|
//Would be with a GUI to configure those.
|
|
struct AutoPause
|
|
{
|
|
std::vector<u32> m_pause_syscall;
|
|
std::vector<u32> m_pause_function;
|
|
bool initialized;
|
|
bool m_pause_syscall_enable;
|
|
bool m_pause_function_enable;
|
|
|
|
AutoPause();
|
|
~AutoPause();
|
|
public:
|
|
static AutoPause& getInstance(void);
|
|
|
|
void Reload(bool enable_pause_syscall, bool enable_pause_function);
|
|
|
|
void Reload(void);
|
|
|
|
void TryPause(u32 code);
|
|
};
|
|
} |