From 832a49e0b2fb3695bdfd192b365c2000bac48b4c Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 25 Feb 2020 05:54:52 +1100 Subject: [PATCH] pause: enable restart, fix protected mode not clear flag when restarting thanks crash5b for helping with fixing issues in this feature --- source-code/source/plugins/TLAC/Components/Pause.cpp | 2 +- source-code/source/plugins/TLAC/Components/Pause.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source-code/source/plugins/TLAC/Components/Pause.cpp b/source-code/source/plugins/TLAC/Components/Pause.cpp index c5b85b9..a91b2d1 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.cpp +++ b/source-code/source/plugins/TLAC/Components/Pause.cpp @@ -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 }, } diff --git a/source-code/source/plugins/TLAC/Components/Pause.h b/source-code/source/plugins/TLAC/Components/Pause.h index 306f0c1..87ee21a 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.h +++ b/source-code/source/plugins/TLAC/Components/Pause.h @@ -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 });