From f8f3b399e77615478a32362607237d52d33449fb Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 22 Oct 2019 05:39:37 +1100 Subject: [PATCH] pause disable broken restart button --- source-code/source/plugins/TLAC/Components/Pause.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source-code/source/plugins/TLAC/Components/Pause.h b/source-code/source/plugins/TLAC/Components/Pause.h index 3b84c0b..bc7a782 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.h +++ b/source-code/source/plugins/TLAC/Components/Pause.h @@ -75,7 +75,7 @@ namespace TLAC::Components static void mainmenu() { menuSet = MENUSET_MAIN; menuPos = mainMenuPos; menuItemSelectTime = std::chrono::high_resolution_clock::now(); }; static void unpause() { pause = false; }; - static void restart() { ((void(*)(uint64_t))0x140675000)(PV_GAME_BASE_ADDRESS); } + //static void restart() { *(uint8_t*)0x140d0b538 = 1; unpause(); } static void giveup() { giveUp = true; }; static void sevolmenu() { menuSet = MENUSET_SEVOL; menuPos = 1; menuItemSelectTime = std::chrono::high_resolution_clock::now(); }; @@ -87,7 +87,7 @@ namespace TLAC::Components std::vector> menuItems[2] = { { std::pair(std::string("RESUME"), &unpause), - std::pair(std::string("RESTART"), &restart), + //std::pair(std::string("RESTART"), &restart), std::pair(std::string("SE VOLUME"), &sevolmenu), std::pair(std::string("GIVE UP"), &giveup), },