aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/agos.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-06-24 21:15:30 +0000
committerChristopher Page2008-06-24 21:15:30 +0000
commitf878820bbee1e7e4659ca601872674082334fa63 (patch)
treed1b05985a2b1758e8648fe86a64a5ef2562f1765 /engines/agos/agos.cpp
parent65abece4c67c4fb574caac717fff24bfb5f31d69 (diff)
downloadscummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.tar.gz
scummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.tar.bz2
scummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.zip
Created Global Main Menu Dialog. Made a uniform _quit flag for engines. So far agi, agos, and cine are now using the new _quit flag.
svn-id: r32770
Diffstat (limited to 'engines/agos/agos.cpp')
-rw-r--r--engines/agos/agos.cpp31
1 files changed, 29 insertions, 2 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index 365f9fcde7..cd121b6300 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -30,6 +30,10 @@
#include "common/system.h"
#include "common/events.h"
+//#include "gui/message.h"
+//#include "gui/newgui.h"
+
+//#include "agos/dialogs.h"
#include "agos/debugger.h"
#include "agos/intern.h"
#include "agos/agos.h"
@@ -97,7 +101,8 @@ AGOSEngine::AGOSEngine(OSystem *syst)
_vc_get_out_of_code = 0;
_gameOffsetsPtr = 0;
- _quit = false;
+ //_quit = false;
+ //_rtl = false;
_debugger = 0;
@@ -195,6 +200,8 @@ AGOSEngine::AGOSEngine(OSystem *syst)
_backFlag = 0;
+ //_mainMenuDialog = NULL;
+
_debugMode = 0;
_startMainScript = false;
_continousMainScript = false;
@@ -1021,7 +1028,7 @@ int AGOSEngine::go() {
delay(100);
}
- return 0;
+ return _rtl;
}
@@ -1080,5 +1087,25 @@ uint32 AGOSEngine::getTime() const {
// FIXME: calling time() is not portable, use OSystem::getMillis instead
return (uint32)time(NULL);
}
+/*
+int AGOSEngine::runDialog(Dialog &dialog) {
+
+ pauseEngine(true);
+
+ int result = dialog.runModal();
+
+ pauseEngine(false);
+ return 0;
+}
+/*
+void AGOSEngine::mainMenuDialog() {
+ if (!_mainMenuDialog)
+ _mainMenuDialog = new MainMenuDialog(this);
+ runDialog(*_mainMenuDialog);
+ _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
+ _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
+ _midi.setVolume(ConfMan.getInt("music_volume"));
+}
+*/
} // End of namespace AGOS