1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00
rpcs3/Utilities/AutoPause.h

23 lines
471 B
C
Raw Normal View History

#pragma once
2016-05-13 16:01:48 +02:00
#include <unordered_set>
2016-02-01 22:55:43 +01:00
// 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.
class autopause
{
2016-02-01 22:55:43 +01:00
std::unordered_set<u64> m_pause_syscall;
std::unordered_set<u32> m_pause_function;
2016-02-01 22:55:43 +01:00
static autopause& get_instance();
public:
2016-02-01 22:55:43 +01:00
static void reload();
static bool pause_syscall(u64 code);
static bool pause_function(u32 code);
};
2016-02-01 22:55:43 +01:00
}