Fix unwanted statichle_handler init

This commit is contained in:
Nekotekina 2019-09-19 15:58:02 +03:00
parent a797b350a0
commit e7d67f9732
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ std::vector<std::array<std::string, 6>> shle_patterns_list
{ "2B850007409D00B07C6923785520077E2F800000409E00ACE8030000E9440000", "68", "EF18", "0158", "sys_libc", "memcmp" }, { "2B850007409D00B07C6923785520077E2F800000409E00ACE8030000E9440000", "68", "EF18", "0158", "sys_libc", "memcmp" },
}; };
statichle_handler::statichle_handler() statichle_handler::statichle_handler(int)
{ {
load_patterns(); load_patterns();
} }

View File

@ -20,7 +20,7 @@ struct shle_pattern
class statichle_handler class statichle_handler
{ {
public: public:
statichle_handler(); statichle_handler(int);
~statichle_handler(); ~statichle_handler();
bool load_patterns(); bool load_patterns();

View File

@ -1151,7 +1151,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
// Static HLE patching // Static HLE patching
if (g_cfg.core.hook_functions) if (g_cfg.core.hook_functions)
{ {
auto shle = g_fxo->init<statichle_handler>(); auto shle = g_fxo->init<statichle_handler>(0);
for (u32 i = _main->segs[0].addr; i < (_main->segs[0].addr + _main->segs[0].size); i += 4) for (u32 i = _main->segs[0].addr; i < (_main->segs[0].addr + _main->segs[0].size); i += 4)
{ {