aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kfile.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2010-01-31 19:46:46 +0000
committerWalter van Niftrik2010-01-31 19:46:46 +0000
commit4acb18f6b9faa4a0faf3f88ae74926e9c1074ed5 (patch)
tree1e1a5230202687eb4cd5b68a16e3ea554931e103 /engines/sci/engine/kfile.cpp
parent1d50acaa50ff88d22326d16b667d5f3cc8991e7f (diff)
downloadscummvm-rg350-4acb18f6b9faa4a0faf3f88ae74926e9c1074ed5.tar.gz
scummvm-rg350-4acb18f6b9faa4a0faf3f88ae74926e9c1074ed5.tar.bz2
scummvm-rg350-4acb18f6b9faa4a0faf3f88ae74926e9c1074ed5.zip
SCI: Add another DeviceInfo subfunction. Fixes VM crash in MUMG.
svn-id: r47775
Diffstat (limited to 'engines/sci/engine/kfile.cpp')
-rw-r--r--engines/sci/engine/kfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 216a543aa8..0e12f8cb1f 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -346,6 +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_SAVECAT_NAME = 7,
K_DEVICE_INFO_GET_SAVEFILE_NAME = 8
};
@@ -380,6 +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');
+ }
/* 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
** for more information on our workaround for this.