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 7d48b65a6b
commit 832a49e0b2
2 changed files with 2 additions and 1 deletions
@@ -51,7 +51,7 @@ namespace TLAC::Components
"PAUSED", "PAUSED",
{ {
{ "RESUME", unpause, false }, { "RESUME", unpause, false },
//{ "RESTART", restart, false }, { "RESTART", restart, false },
{ "SE VOLUME", sevolmenu, false }, { "SE VOLUME", sevolmenu, false },
{ "GIVE UP", giveup, false }, { "GIVE UP", giveup, false },
} }
@@ -187,6 +187,7 @@ namespace TLAC::Components
*(int*)0x140D0A9BC = 0; // total holds *(int*)0x140D0A9BC = 0; // total holds
*(int*)0x140D0A9B8 = 0; // hold + multi *(int*)0x140D0A9B8 = 0; // hold + multi
*(int*)0x140D0A9C0 = 0; // slide *(int*)0x140D0A9C0 = 0; // slide
*(uint8_t*)0x140D0A50C = 0; // not clear flag
// revert patches and unpause // revert patches and unpause
InjectCode((void*)0x1401038cd, { 0x12 }); InjectCode((void*)0x140103b94, { 0x16 }); InjectCode((void*)0x1401038cd, { 0x12 }); InjectCode((void*)0x140103b94, { 0x16 });