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 | 4b9fb631fc1b250a1e353da2e319d49371573bcc (diff) |
some more GTA_VERSION
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)){ |