3
0
mirror of https://github.com/CrazyRedMachine/popnhax.git synced 2024-11-27 23:40:50 +01:00

fix guide se off

This commit is contained in:
CrazyRedMachine 2024-10-02 21:17:09 +02:00
parent 536600b349
commit 44886c4a48

View File

@ -8019,13 +8019,31 @@ static bool option_full()
static bool option_guide_se_off(){
/* set guide SE OFF by default in all modes */
{
if (!find_and_patch_hex(g_game_dll_fn, "\xC6\x40\x24\x01\x88\x48\x25", 7, 3, "\x00", 1) /* unilab */
&& !find_and_patch_hex(g_game_dll_fn, "\x89\x48\x20\x88\x48\x24\xC3\xCC", 8, 3, "\xC6\x40\x24\x01\xC3", 5) ) /* usaneko-kaimei */
if ( config.game_version < 27 )
{
if (!find_and_patch_hex(g_game_dll_fn, "\x89\x48\x20\x88\x48\x24\xC3\xCC", 8, 3, "\xC6\x40\x24\x01\xC3", 5))
{
LOG("popnhax: guidese_off: cannot set guide SE off by default\n");
return false;
}
}
else if ( config.game_version == 27 )
{
if (!find_and_patch_hex(g_game_dll_fn, "\xC6\x40\x24\x01\x88\x48\x25", 7, 3, "\x00", 1))
{
LOG("popnhax: guidese_off: cannot set guide SE off by default\n");
return false;
}
}
else
{
if (!find_and_patch_hex(g_game_dll_fn, "\xC6\x40\x24\x01\xC6\x40\x25\x03", 8, 3, "\x00", 1))
{
LOG("popnhax: guidese_off: cannot set guide SE off by default\n");
return false;
}
}
}
LOG("popnhax: guidese_off: Guide SE OFF by default\n");
return true;
}