game: don't exit prematurely when rebooting in debug (#2608)

I'm not sure what has changed here...but rebooting in debug mode now
hangs.

- It seems to exit the GFX loop prematurely because `MasterExit` is
still set to `RESTART_IN_DEBUG`
https://github.com/open-goal/jak-project/blob/master/game/runtime.cpp#L431
- And then it gets stuck waiting for the DECI thread to close

This works, but im not sure if it's the right fix / what has changed to
require this.
This commit is contained in:
Tyler Wilding
2023-04-30 22:06:11 -05:00
committed by GitHub
parent ef23fecd90
commit 28a5a417bc
+1
View File
@@ -192,6 +192,7 @@ int main(int argc, char** argv) {
// run the runtime in a loop so we can reset the game and have it restart cleanly
lg::info("OpenGOAL Runtime {}.{}", versions::GOAL_VERSION_MAJOR, versions::GOAL_VERSION_MINOR);
try {
MasterExit = RuntimeExitStatus::RUNNING;
auto exit_status = exec_runtime(game_options, arg_ptrs.size(), arg_ptrs.data());
switch (exit_status) {
case RuntimeExitStatus::EXIT: