diff options
author | James Brown | 2002-12-27 04:22:40 +0000 |
---|---|---|
committer | James Brown | 2002-12-27 04:22:40 +0000 |
commit | 7a570233215008232c872b3dc0d5f696979d1fe3 (patch) | |
tree | 8169859462def2d8df135478e963264bef3c6246 | |
parent | 29f0d9af8e2dacb9bb922d7367791f81c0b91c0e (diff) | |
download | scummvm-rg350-7a570233215008232c872b3dc0d5f696979d1fe3.tar.gz scummvm-rg350-7a570233215008232c872b3dc0d5f696979d1fe3.tar.bz2 scummvm-rg350-7a570233215008232c872b3dc0d5f696979d1fe3.zip |
Fix cwd resource path bug for CMI
svn-id: r6191
-rw-r--r-- | scumm/scumm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index 22a9ae5971..920af87abe 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -284,6 +284,9 @@ public: const char *getGameDataPath() const { if (_features & GF_AFTER_V8) { static char resourcePath[256]; + if (_gameDataPath[0] == '\0') + return "resource"; + sprintf(resourcePath, "%s/resource", _gameDataPath); return resourcePath; } |