aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter van Niftrik2010-01-31 21:11:36 +0000
committerWalter van Niftrik2010-01-31 21:11:36 +0000
commitc66a6db21363c435cf75fb8968ebe76371166ebb (patch)
treec98d2b75277b69649cfd8ef6a56bf24812ed7260
parent180874f044380c91238069906caffbcc38499603 (diff)
downloadscummvm-rg350-c66a6db21363c435cf75fb8968ebe76371166ebb.tar.gz
scummvm-rg350-c66a6db21363c435cf75fb8968ebe76371166ebb.tar.bz2
scummvm-rg350-c66a6db21363c435cf75fb8968ebe76371166ebb.zip
SCI: Fix regression in KQ5CD caused by r47775.
svn-id: r47778
-rw-r--r--engines/sci/engine/kfile.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 0e12f8cb1f..556fe800e9 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -346,7 +346,7 @@ enum {
K_DEVICE_INFO_GET_CURRENT_DEVICE = 1,
K_DEVICE_INFO_PATHS_EQUAL = 2,
K_DEVICE_INFO_IS_FLOPPY = 3,
- K_DEVICE_INFO_GET_CONFIG_DISK = 5,
+ K_DEVICE_INFO_GET_CONFIG_PATH = 5,
K_DEVICE_INFO_GET_SAVECAT_NAME = 7,
K_DEVICE_INFO_GET_SAVEFILE_NAME = 8
};
@@ -381,9 +381,10 @@ reg_t kDeviceInfo(EngineState *s, int argc, reg_t *argv) {
debug(3, "K_DEVICE_INFO_IS_FLOPPY(%s)", input_str.c_str());
return NULL_REG; /* Never */
}
- case K_DEVICE_INFO_GET_CONFIG_DISK: {
- // Return drive that resource.cfg was loaded from
- return make_reg(0, 'C');
+ case K_DEVICE_INFO_GET_CONFIG_PATH: {
+ // Early versions return drive letter, later versions a path string
+ // FIXME: Implement if needed, for now return NULL_REG
+ return NULL_REG;
}
/* SCI uses these in a less-than-portable way to delete savegames.
** Read http://www-plan.cs.colorado.edu/creichen/freesci-logs/2005.10/log20051019.html