aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-31 14:59:30 +0000
committerFilippos Karapetis2009-12-31 14:59:30 +0000
commitcb6b1e8aff0e34c6cd556455ee173f925300acd3 (patch)
treeadd4094795d4a5c0aba2144f9f5731f12479aacd /engines/sci
parent2e0482efa7103a71ba8729de7d8d34895eca380f (diff)
downloadscummvm-rg350-cb6b1e8aff0e34c6cd556455ee173f925300acd3.tar.gz
scummvm-rg350-cb6b1e8aff0e34c6cd556455ee173f925300acd3.tar.bz2
scummvm-rg350-cb6b1e8aff0e34c6cd556455ee173f925300acd3.zip
Changed kValidPath() to always return true, regardless of the value of savePath (so that it works with both SCI11 and SCI32 games)
svn-id: r46800
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index bd586e5565..717ca9d25f 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -592,12 +592,10 @@ reg_t kRestoreGame(EngineState *s, int argc, reg_t *argv) {
reg_t kValidPath(EngineState *s, int argc, reg_t *argv) {
Common::String path = s->_segMan->getString(argv[0]);
- // FIXME: For now, we only accept the (fake) dir "" as a valid path.
- s->r_acc = make_reg(0, path == "");
-
debug(3, "kValidPath(%s) -> %d", path.c_str(), s->r_acc.offset);
- return s->r_acc;
+ // Always return true
+ return make_reg(0, 1);
}
enum {