From cb6b1e8aff0e34c6cd556455ee173f925300acd3 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 31 Dec 2009 14:59:30 +0000 Subject: [PATCH] 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 --- engines/sci/engine/kfile.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index bd586e55650..717ca9d25f9 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 {