- Exhumed: Implement "Quit to title".

Fixes #252
This commit is contained in:
Christoph Oelckers 2020-08-25 21:34:12 +02:00
parent efc83e1a5f
commit 5af71c0af2
2 changed files with 10 additions and 1 deletions

View file

@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "names.h" #include "names.h"
#include "version.h" #include "version.h"
#include "raze_sound.h" #include "raze_sound.h"
#include "gamestate.h"
#include "menu/menu.h" // to override the local menu.h #include "menu/menu.h" // to override the local menu.h
@ -148,6 +149,13 @@ void GameInterface::MenuSound(EMenuSounds snd)
} }
} }
void GameInterface::QuitToTitle()
{
M_StartControlPanel(false);
M_SetMenu(NAME_Mainmenu);
gamestate = GS_MENUSCREEN;
}
void GameInterface::MenuClosed() void GameInterface::MenuClosed()
{ {

View file

@ -300,6 +300,7 @@ struct GameInterface : ::GameInterface
bool CanSave() override; bool CanSave() override;
ReservedSpace GetReservedScreenSpace(int viewsize) override { return { 0, 24 }; } ReservedSpace GetReservedScreenSpace(int viewsize) override { return { 0, 24 }; }
void clearlocalinputstate() override; void clearlocalinputstate() override;
void QuitToTitle();
FString statFPS() override; FString statFPS() override;
::GameStats getStats() override; ::GameStats getStats() override;