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:
parent
2e0482efa7
commit
cb6b1e8aff
1 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue