diff options
author | Tarek Soliman | 2011-04-25 15:26:38 -0500 |
---|---|---|
committer | Tarek Soliman | 2011-06-16 13:37:13 -0500 |
commit | 4d0bba314d3b584f15d1d50e59d8f1b8c9a39161 (patch) | |
tree | b6daa3b7cc5fff831af5aba08c389748b5871d3d /engines/engine.cpp | |
parent | 71759eab534512e7a4df557f12ffadb0062a56ad (diff) | |
download | scummvm-rg350-4d0bba314d3b584f15d1d50e59d8f1b8c9a39161.tar.gz scummvm-rg350-4d0bba314d3b584f15d1d50e59d8f1b8c9a39161.tar.bz2 scummvm-rg350-4d0bba314d3b584f15d1d50e59d8f1b8c9a39161.zip |
ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
ADGF_UNSTABLE is always warned about.
ADGF_TESTING is only warned about when running
configure with --enable-relase.
Both warnings are subject to the enable_wip_game_warning
config option.
Diffstat (limited to 'engines/engine.cpp')
-rw-r--r-- | engines/engine.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp index dc30b4bd0d..0797bafc27 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -400,6 +400,17 @@ void Engine::openMainMenuDialog() { syncSoundSettings(); } +bool Engine::warnUserAboutUnsupportedGame() { + if (ConfMan.getBool("enable_unsupported_game_warning")) { + GUI::MessageDialog alert("WARNING: The game you are about to start is" + " not yet fully supported by ScummVM. As such, it is likely to be" + " unstable, and any saves you make might not work in future" + " versions of ScummVM.", "Start anyway", "Cancel"); + return alert.runModal() == GUI::kMessageOK; + } + return true; +} + uint32 Engine::getTotalPlayTime() const { if (!_pauseLevel) return _system->getMillis() - _engineStartTime; |