pause disable broken restart button

This commit is contained in:
somewhatlurker
2019-10-22 05:39:37 +11:00
parent c724e1b0a0
commit f8f3b399e7
@@ -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<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("RESTART"), &restart),
std::pair<std::string, void(*)()>(std::string("SE VOLUME"), &sevolmenu),
std::pair<std::string, void(*)()>(std::string("GIVE UP"), &giveup),
},