mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SAGA2: Enable loading from launcher
This commit is contained in:
parent
40e91565a6
commit
04988e6626
@ -24,6 +24,7 @@
|
||||
* (c) 1993-1996 The Wyrmkeep Entertainment Co.
|
||||
*/
|
||||
|
||||
#include "common/config-manager.h"
|
||||
#include "common/debug.h"
|
||||
#include "common/events.h"
|
||||
#include "common/memstream.h"
|
||||
@ -149,6 +150,7 @@ bool setupGame(void);
|
||||
void mainEnable(void);
|
||||
void mainDisable(void);
|
||||
void lightsOut(void);
|
||||
void updateMainDisplay(void);
|
||||
|
||||
void cleanupGame(void); // auto-cleanup function
|
||||
void parseCommandLine(int argc, char *argv[]);
|
||||
@ -190,6 +192,28 @@ void main_saga2() {
|
||||
cleanExit = gameInitialized;
|
||||
|
||||
if (gameInitialized) {
|
||||
if (ConfMan.hasKey("save_slot")) {
|
||||
reDrawScreen();
|
||||
|
||||
disableUserControls();
|
||||
cleanupGameState();
|
||||
|
||||
fadeDown();
|
||||
|
||||
loadSavedGameState(ConfMan.getInt("save_slot"));
|
||||
|
||||
if (GameMode::newmodeFlag)
|
||||
GameMode::update();
|
||||
updateActiveRegions();
|
||||
enableUserControls();
|
||||
updateMainDisplay();
|
||||
drawMainDisplay();
|
||||
enablePaletteChanges();
|
||||
updateAllUserControls();
|
||||
fadeUp();
|
||||
reDrawScreen();
|
||||
}
|
||||
|
||||
mainLoop(cleanExit, 0, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user