diff options
author | James Brown | 2002-12-27 00:11:01 +0000 |
---|---|---|
committer | James Brown | 2002-12-27 00:11:01 +0000 |
commit | fd64fc2b6ba7fd18c568d60bd27cb113f428833e (patch) | |
tree | 11dafd0156ca8173dd835634dbef567bbbdec814 /scumm/scumm.h | |
parent | a8b5549fb5572ffb883a0f42661c4dcf0bc485fc (diff) | |
download | scummvm-rg350-fd64fc2b6ba7fd18c568d60bd27cb113f428833e.tar.gz scummvm-rg350-fd64fc2b6ba7fd18c568d60bd27cb113f428833e.tar.bz2 scummvm-rg350-fd64fc2b6ba7fd18c568d60bd27cb113f428833e.zip |
Move some things around, to get rid of all these resource/ sprintf's for CMI
svn-id: r6182
Diffstat (limited to 'scumm/scumm.h')
-rw-r--r-- | scumm/scumm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index 50ee8aff45..7b98989772 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -280,6 +280,16 @@ public: int scummLoop(int delta); void initScummVars(); + const char *getResDataPath() const {return _gameDataPath;} + const char *getGameDataPath() const { + if (_features & GF_AFTER_V8) { + char resourcePath[255]; + sprintf(resourcePath, "%s/resource", _gameDataPath); + return resourcePath; + } + return _gameDataPath; + } + void pauseGame(bool user); void shutDown(int i); void setOptions(void); |