Add restart to prelaunch button to settings, remove gamemodeStub functions

This commit is contained in:
jdflyer
2026-07-26 00:25:59 -07:00
parent 9c2e0e9331
commit f22bfcd9ba
11 changed files with 77 additions and 24 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ void mDoRst_resetCallBack(int port, void*) {
#ifdef TARGET_PC
const dusk::gamemode::Gamemode* gamemode = dusk::gamemode::getGamemodeManager().getCurrentGamemode();
if (gamemode) {
gamemode->mOnGameResetFunction();
gamemode->invokeOnGameResetFunction();
}
#endif
@@ -158,7 +158,7 @@ void mDoRst_resetCallBack(int port, void*) {
mDoRst::onReset();
#ifdef TARGET_PC
// Show pre-launch only if we have a registered gamemode and are resetting from the menubar
if (dusk::ui::prelaunch_state().showPrelaunchOnReset == false || dusk::gamemode::getGamemodeManager().getRegisteredGamemodes().size() == 1) {
if (dusk::ui::prelaunch_state().showPrelaunchOnReset == false) {
return;
}