diff options
author | aap <aap@papnet.eu> | 2019-06-27 10:58:51 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-27 10:58:51 +0200 |
commit | d74b8fa9521b070ba09496563904a5e4b994edf2 (patch) | |
tree | 21d37d89d193bffa20ac2fcbbbf20d63408cd247 /src/Streaming.cpp | |
parent | Merge pull request #61 from gennariarmando/master (diff) | |
download | re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar.gz re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar.bz2 re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar.lz re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar.xz re3-d74b8fa9521b070ba09496563904a5e4b994edf2.tar.zst re3-d74b8fa9521b070ba09496563904a5e4b994edf2.zip |
Diffstat (limited to 'src/Streaming.cpp')
-rw-r--r-- | src/Streaming.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/Streaming.cpp b/src/Streaming.cpp index 967b3ec8..65c0b0b8 100644 --- a/src/Streaming.cpp +++ b/src/Streaming.cpp @@ -187,6 +187,7 @@ CStreaming::Init(void) debug("Streaming buffer size is %d sectors", ms_streamingBufferSize); // PC only, figure out how much memory we got +#ifdef GTA_PC #define MB (1024*1024) extern DWORD &_dwMemAvailPhys; ms_memoryAvailable = (_dwMemAvailPhys - 10*MB)/2; @@ -197,6 +198,7 @@ CStreaming::Init(void) desiredNumVehiclesLoaded = MAXVEHICLESLOADED; debug("Memory allocated to Streaming is %dMB", ms_memoryAvailable/MB); #undef MB +#endif // find island LODs @@ -243,14 +245,22 @@ CStreaming::LoadCdDirectory(void) char dirname[132]; int i; - // PC specific stuff +#ifdef GTA_PC ms_imageOffsets[0] = 0; - for(i = 1; i < NUMCDIMAGES; i++) - ms_imageOffsets[i] = -1; + ms_imageOffsets[1] = -1; + ms_imageOffsets[2] = -1; + ms_imageOffsets[3] = -1; + ms_imageOffsets[4] = -1; + ms_imageOffsets[5] = -1; + ms_imageOffsets[6] = -1; + ms_imageOffsets[7] = -1; + ms_imageOffsets[8] = -1; + ms_imageOffsets[9] = -1; + ms_imageOffsets[10] = -1; + ms_imageOffsets[11] = -1; ms_imageSize = GetGTA3ImgSize(); - // PS2 uses CFileMgr::GetCdFile on all IMG files to fill the array - +#endif i = CdStreamGetNumImages(); while(i-- >= 1){ |