bug in SURF #304

This commit is contained in:
BADIM-PC\Vadim 2017-09-28 17:20:27 +03:00
parent be0a8cbeab
commit 2ea41a63d9
3 changed files with 8 additions and 1 deletions

View File

@ -847,7 +847,7 @@ static void onConsoleInstallDemosCommand(Console* console, const char* param)
static void onConsoleSurfCommand(Console* console, const char* param)
{
setStudioMode(TIC_SURF_MODE);
gotoSurf();
commandDone(console);
}

View File

@ -719,6 +719,12 @@ static void initSurfMode()
initSurf(&studio.surf, studio.tic, &studio.console);
}
void gotoSurf()
{
initSurfMode();
setStudioMode(TIC_SURF_MODE);
}
static void initMenuMode()
{
initMenu(&studio.menu, studio.tic, studio.fs);

View File

@ -197,4 +197,5 @@ bool studioCartChanged();
void playSystemSfx(s32 id);
void runGameFromSurf();
void gotoSurf();
void exitFromGameMenu();