mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fix unwanted statichle_handler init
This commit is contained in:
parent
a797b350a0
commit
e7d67f9732
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user