diff options
author | Travis Howell | 2006-05-02 03:23:03 +0000 |
---|---|---|
committer | Travis Howell | 2006-05-02 03:23:03 +0000 |
commit | 01c92cf6f5efbfe36c48f9d00122c93cc4f5d2cd (patch) | |
tree | 2357149f0f0bbd6d77665c6e716830d3d3c19536 /engines/scumm/he/script_v60he.cpp | |
parent | 84b2a4f76fed5848b8a4ff49fd2fcfd9604a0c92 (diff) | |
download | scummvm-rg350-01c92cf6f5efbfe36c48f9d00122c93cc4f5d2cd.tar.gz scummvm-rg350-01c92cf6f5efbfe36c48f9d00122c93cc4f5d2cd.tar.bz2 scummvm-rg350-01c92cf6f5efbfe36c48f9d00122c93cc4f5d2cd.zip |
Add support for reading/writing config files through saveGameManager and use for config files in HE games
svn-id: r22273
Diffstat (limited to 'engines/scumm/he/script_v60he.cpp')
-rw-r--r-- | engines/scumm/he/script_v60he.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp index da8f8fbad6..614a337fc4 100644 --- a/engines/scumm/he/script_v60he.cpp +++ b/engines/scumm/he/script_v60he.cpp @@ -399,10 +399,10 @@ const char *ScummEngine_v60he::getOpcodeDesc(byte i) { return _opcodesv60he[i].desc; } -int ScummEngine_v60he::convertFilePath(byte *dst, bool setFilePath) { +int ScummEngine_v60he::convertFilePath(byte *dst) { debug(1, "convertFilePath: original filePath is %s", dst); - int len = resStrLen(dst) + 1; + int len = resStrLen(dst); if (dst[0] == ':') { // Switch all : to / for portablity int j = 0; @@ -431,19 +431,7 @@ int ScummEngine_v60he::convertFilePath(byte *dst, bool setFilePath) { } } - if (setFilePath) { - char filePath[256]; - strncpy(filePath, (char *)dst + r, sizeof(filePath)); - if (!Common::File::exists(filePath)) { - // FIXME: Using getSavePath() to generate filepaths used with - // File::open is not portable! - strncpy(filePath, _saveFileMan->getSavePath(), sizeof(filePath)); - strncat(filePath, (char *)dst + r, sizeof(filePath)); - } - strcpy((char *)dst, filePath); - debug(1, "convertFilePath: filePath is %s", dst); - } - + debug(1, "convertFilePath: converted filePath is %s", dst + r); return r; } |