diff options
author | aap <aap@papnet.eu> | 2020-12-01 00:22:57 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-01 00:22:57 +0100 |
commit | 2c59e1c8945a5c6de6415611d4f1dbc720790d73 (patch) | |
tree | 8fad006f6ef1b6699daad8a75966246ad8b6c9a1 /src/core/FileLoader.cpp | |
parent | added a few registered pointers and memory debug (diff) | |
download | re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar.gz re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar.bz2 re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar.lz re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar.xz re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.tar.zst re3-2c59e1c8945a5c6de6415611d4f1dbc720790d73.zip |
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r-- | src/core/FileLoader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index aeaede56..b9d475b8 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -59,7 +59,13 @@ CFileLoader::LoadLevel(const char *filename) savedTxd = RwTexDictionaryCreate(); RwTexDictionarySetCurrent(savedTxd); } +#if GTA_VERSION <= GTA3_PS2_160 + CFileMgr::ChangeDir("\\DATA\\"); fd = CFileMgr::OpenFile(filename, "r"); + CFileMgr::ChangeDir("\\"); +#else + fd = CFileMgr::OpenFile(filename, "r"); +#endif assert(fd > 0); for(line = LoadLine(fd); line; line = LoadLine(fd)){ |