Added GUI Configuration for Auto-Pause.

You can easily configure it as what you do for VHD/VFS.
To disable/enable Auto-Pause, find the configuration checkboxes from HLE/Misc panel in Config->Setting of rpcs3.
This commit is contained in:
luxsie 2014-08-14 23:22:13 +08:00
parent 27403162ad
commit 069aa9fb2a
9 changed files with 399 additions and 14 deletions

View file

@ -23,7 +23,7 @@ AutoPause::AutoPause(void)
m_pause_syscall.reserve(16);
initialized = false;
//Reload(false, false);
Reload(true, true); //Temporarily use auto enable
Reload();
}
//Notice: I would not allow to write the binary to file in this command.
@ -79,17 +79,11 @@ void AutoPause::Reload(void)
{
LOG_WARNING(HLE, "No Pause ID specified in pause.bin, Auto-Pause would not act.");
}
m_pause_syscall_enable = Ini.DBGAutoPauseSystemCall.GetValue();
m_pause_function_enable = Ini.DBGAutoPauseFunctionCall.GetValue();
initialized = true;
}
void AutoPause::Reload(bool enable_pause_syscall, bool enable_pause_function)
{
Reload();
m_pause_syscall_enable = enable_pause_syscall;
m_pause_function_enable = enable_pause_function;
}
void AutoPause::TryPause(u32 code) {
if (code < 1024)
{

View file

@ -20,8 +20,6 @@ namespace Debug {
public:
static AutoPause& getInstance(void);
void Reload(bool enable_pause_syscall, bool enable_pause_function);
void Reload(void);
void TryPause(u32 code);