pause: don't click the restart button. I warned you.
This commit is contained in:
@@ -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<std::pair<std::string, void(*)()>> menuItems[2] = {
|
||||
{
|
||||
std::pair<std::string, void(*)()>(std::string("RESUME"), &unpause),
|
||||
std::pair<std::string, void(*)()>(std::string("RESTART"), &restart),
|
||||
std::pair<std::string, void(*)()>(std::string("SE VOLUME"), &sevolmenu),
|
||||
std::pair<std::string, void(*)()>(std::string("GIVE UP"), &giveup),
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user