diff options
author | Vladimir Menshakov | 2011-06-18 14:29:10 +0400 |
---|---|---|
committer | Vladimir Menshakov | 2011-06-18 14:29:10 +0400 |
commit | 41a399231be1abe21ac561994f0f19bc0c37e8a1 (patch) | |
tree | f4ed3ba7092b0458c9cdfa5e39b6beedd6f634c9 /engines/dreamweb/dreamweb.cpp | |
parent | cf671227fe52f7d87afeab65a90642d4aa6b7d73 (diff) | |
download | scummvm-rg350-41a399231be1abe21ac561994f0f19bc0c37e8a1.tar.gz scummvm-rg350-41a399231be1abe21ac561994f0f19bc0c37e8a1.tar.bz2 scummvm-rg350-41a399231be1abe21ac561994f0f19bc0c37e8a1.zip |
DREAMWEB: added stubs for loading from lancher (disabled).
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index a0e3bf0f9b..0dc25afab0 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -111,6 +111,15 @@ void DreamWebEngine::processEvents() { quit(); return; } + + if (_enableSavingOrLoading && _loadSavefile >= 0 && _loadSavefile <= 6) { + debug(1, "loading save state %d", _loadSavefile); + _context.data.byte(_context.kCurrentslot) = _loadSavefile; + _loadSavefile = -1; + _context.loadposition(); + _context.data.byte(_context.kGetback) = 1; + } + soundHandler(); Common::Event event; int softKey, hardKey; @@ -208,6 +217,8 @@ void DreamWebEngine::processEvents() { Common::Error DreamWebEngine::run() { _console = new DreamWebConsole(this); + _loadSavefile = Common::ConfigManager::instance().getInt("save_slot"); + getTimerManager()->installTimerProc(vSyncInterrupt, 1000000 / 70, this); //http://martin.hinner.info/vga/timing.html |