SCI: now pausing/unpausing music in replaced restore dialog

dialog will not get replaced in sci32, nor in mother goose. Enable by adding "scireplacedialog" inside scummvm section of scummvm.ini file. Note: this feature is experimental

svn-id: r52318
This commit is contained in:
Martin Kiewitz 2010-08-24 09:00:53 +00:00
parent f1f24b7b28
commit d5d8434fd6
3 changed files with 49 additions and 25 deletions

View file

@ -347,8 +347,20 @@ void SciEngine::patchGameSaveRestore(SegManager *segMan) {
const uint16 kernelCount = _kernel->getKernelNamesSize();
byte kernelIdRestore = 0;
// DISABLE NEXT LINE FOR REPLACING SIERRA GAME RESTORE DIALOG WITH SCUMMVM RESTORE
return;
// this feature is currently not supported on SCI32
if (getSciVersion() >= SCI_VERSION_2)
return;
switch (_gameId) {
case GID_MOTHERGOOSE256: // mother goose saves/restores directly and has no save/restore dialogs
return;
default:
break;
}
Common::String replaceDialogOption = ConfMan.get("scireplacedialog", Common::ConfigManager::kApplicationDomain);
if (replaceDialogOption == "")
return;
for (uint16 kernelNr = 0; kernelNr < kernelCount; kernelNr++) {
Common::String kernelName = _kernel->getKernelName(kernelNr);