1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 12:42:41 +01:00
rpcs3/Utilities/AutoPause.h

21 lines
445 B
C
Raw Normal View History

#pragma once
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
}