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
This commit is contained in:
Filippos Karapetis 2009-12-31 14:59:30 +00:00
parent 2e0482efa7
commit cb6b1e8aff

View file

@ -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 {