diff --git a/source-code/source/plugins/TLAC/Components/Pause.h b/source-code/source/plugins/TLAC/Components/Pause.h index 76f5219..3b84c0b 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.h +++ b/source-code/source/plugins/TLAC/Components/Pause.h @@ -75,6 +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 giveup() { giveUp = true; }; static void sevolmenu() { menuSet = MENUSET_SEVOL; menuPos = 1; menuItemSelectTime = std::chrono::high_resolution_clock::now(); }; @@ -86,6 +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("SE VOLUME"), &sevolmenu), std::pair(std::string("GIVE UP"), &giveup), }, diff --git a/source-code/source/plugins/TLAC/Constants.h b/source-code/source/plugins/TLAC/Constants.h index 4cd551d..e54237c 100644 --- a/source-code/source/plugins/TLAC/Constants.h +++ b/source-code/source/plugins/TLAC/Constants.h @@ -111,7 +111,7 @@ constexpr uint64_t DSC_START_SYS_TIME_ADDRESS_2 = 0x0000000140D0B568; constexpr uint64_t DSC_PAUSE_FUNC_ADDRESS = 0x00000001401295C0; constexpr uint64_t DSC_UNPAUSE_FUNC_ADDRESS = 0x0000000140129590; -constexpr uint64_t PV_GAME_BASE_ADDRESS = 0x0000000140C94380; +constexpr uint64_t PV_GAME_BASE_ADDRESS = 0x000000014CC95270; constexpr uint64_t GIVEUP_FUNC_ADDRESS = 0x000000014010EF00;