mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
QUEEN: Disable load/save until game is properly initialised
Co-authored-by: jdgleaver <jdgleaver@users.noreply.github.com>
This commit is contained in:
parent
08b711406a
commit
de879dd538
@ -50,7 +50,7 @@
|
||||
namespace Queen {
|
||||
|
||||
QueenEngine::QueenEngine(OSystem *syst)
|
||||
: Engine(syst), _debugger(0), randomizer("queen") {
|
||||
: Engine(syst), _gameStarted(false), _debugger(0), randomizer("queen") {
|
||||
}
|
||||
|
||||
QueenEngine::~QueenEngine() {
|
||||
@ -173,7 +173,7 @@ void QueenEngine::update(bool checkPlayerInput) {
|
||||
}
|
||||
|
||||
bool QueenEngine::canLoadOrSave() const {
|
||||
return !_input->cutawayRunning() && !(_resource->isDemo() || _resource->isInterview());
|
||||
return !_input->cutawayRunning() && !(_resource->isDemo() || _resource->isInterview()) && _gameStarted;
|
||||
}
|
||||
|
||||
bool QueenEngine::canLoadGameStateCurrently() {
|
||||
@ -368,6 +368,9 @@ Common::Error QueenEngine::run() {
|
||||
_logic->currentRoom(_logic->newRoom());
|
||||
_logic->changeRoom();
|
||||
_display->fullscreen(false);
|
||||
// From this point onwards it is safe to use the load/save
|
||||
// menu, so consider game to be 'started'
|
||||
_gameStarted = true;
|
||||
if (_logic->currentRoom() == _logic->newRoom()) {
|
||||
_logic->newRoom(0);
|
||||
}
|
||||
|
@ -129,6 +129,7 @@ protected:
|
||||
bool _subtitles;
|
||||
uint32 _lastSaveTime;
|
||||
uint32 _lastUpdateTime;
|
||||
bool _gameStarted;
|
||||
|
||||
BamScene *_bam;
|
||||
BankManager *_bankMan;
|
||||
|
Loading…
Reference in New Issue
Block a user