diff options
Diffstat (limited to 'engines/access/access.cpp')
-rw-r--r-- | engines/access/access.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index a039139f0a..01bb3e3845 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -108,6 +108,7 @@ AccessEngine::AccessEngine(OSystem *syst, const AccessGameDescription *gameDesc) _narateFile = 0; _txtPages = 0; _sndSubFile = 0; + _loadSaveSlot = -1; } AccessEngine::~AccessEngine() { @@ -173,6 +174,13 @@ void AccessEngine::initialize() { _buffer1.create(g_system->getWidth() + TILE_WIDTH, g_system->getHeight()); _buffer2.create(g_system->getWidth(), g_system->getHeight()); + + // If requested, load a savegame instead of showing the intro + if (ConfMan.hasKey("save_slot")) { + int saveSlot = ConfMan.getInt("save_slot"); + if (saveSlot >= 0 && saveSlot <= 999) + _loadSaveSlot = saveSlot; + } } Common::Error AccessEngine::run() { |