[Scummvm-cvs-logs] scummvm master -> 2c247a03e935027eda91757f5a064d9bd714e791
m-kiewitz
m_kiewitz at users.sourceforge.net
Mon Feb 22 14:25:21 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2c247a03e9 SCI: Add hack for Pepper's Adventure in Time CDAUDIO issue
Commit: 2c247a03e935027eda91757f5a064d9bd714e791
https://github.com/scummvm/scummvm/commit/2c247a03e935027eda91757f5a064d9bd714e791
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-22T14:24:37+01:00
Commit Message:
SCI: Add hack for Pepper's Adventure in Time CDAUDIO issue
Game checks for file CDAUDIO. Currently the kFileIO(Exists)
code is working pretty slowly on at least Windows. Needs to get
fixed properly by enhancing SaveFileManager().
This is primarily for branch 1.8.0.
Changed paths:
engines/sci/engine/kfile.cpp
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index f155fe7..335763a 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -601,6 +601,16 @@ reg_t kFileIOExists(EngineState *s, int argc, reg_t *argv) {
bool exists = false;
+ if (g_sci->getGameId() == GID_PEPPER) {
+ // HACK: Special case for Pepper's Adventure in Time
+ // The game checks like crazy for the file CDAUDIO when entering the game menu.
+ // On at least Windows that makes the engine slow down to a crawl and takes at least 1 second.
+ // Should get solved properly by changing the code below. This here is basically for 1.8.0 release.
+ // TODO: Fix this properly.
+ if (name == "CDAUDIO")
+ return NULL_REG;
+ }
+
// Check for regular file
exists = Common::File::exists(name);
More information about the Scummvm-git-logs
mailing list