pause: enable restart, fix protected mode not clear flag when restarting

thanks crash5b for helping with fixing issues in this feature
This commit is contained in:
somewhatlurker
2020-02-25 05:54:52 +11:00
parent 013e73e5e3
commit c3780294ff
2 changed files with 2 additions and 1 deletions
@@ -51,7 +51,7 @@ namespace TLAC::Components
"PAUSED",
{
{ "RESUME", unpause, false },
//{ "RESTART", restart, false },
{ "RESTART", restart, false },
{ "SE VOLUME", sevolmenu, false },
{ "GIVE UP", giveup, false },
}
@@ -187,6 +187,7 @@ namespace TLAC::Components
*(int*)0x140D0A9BC = 0; // total holds
*(int*)0x140D0A9B8 = 0; // hold + multi
*(int*)0x140D0A9C0 = 0; // slide
*(uint8_t*)0x140D0A50C = 0; // not clear flag
// revert patches and unpause
InjectCode((void*)0x1401038cd, { 0x12 }); InjectCode((void*)0x140103b94, { 0x16 });