summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-15 17:06:03 +0200
committerGitHub <noreply@github.com>2019-08-15 17:06:03 +0200
commitb246274d9fc198c331a19a5dafc8afad9d911dc7 (patch)
tree35bac433fe9a98acdaae40c62cb8753ce422aa54 /src/core/Streaming.cpp
parentMerge pull request #190 from Fire-Head/master (diff)
parentMerge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.gz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.bz2
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.lz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.xz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.zst
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 9d9241e4..a7bde91e 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -26,6 +26,7 @@
#include "CutsceneMgr.h"
#include "CdStream.h"
#include "Streaming.h"
+#include "main.h"
bool &CStreaming::ms_disableStreaming = *(bool*)0x95CD6E;
bool &CStreaming::ms_bLoadingBigModel = *(bool*)0x95CDB0;
@@ -2427,6 +2428,19 @@ CStreaming::MemoryCardLoad(uint8 *buffer, uint32 length)
ms_aInfoForModel[i].m_flags = buffer[i];
}
+void
+CStreaming::UpdateForAnimViewer(void)
+{
+ if (CStreaming::ms_channelError == -1) {
+ CStreaming::AddModelsToRequestList(CVector(0.0f, 0.0f, 0.0f));
+ CStreaming::LoadRequestedModels();
+ sprintf(gString, "Requested %d, memory size %dK\n", CStreaming::ms_numModelsRequested, 2 * CStreaming::ms_memoryUsed);
+ }
+ else {
+ CStreaming::RetryLoadFile(CStreaming::ms_channelError);
+ }
+}
+
STARTPATCHES
InjectHook(0x406430, CStreaming::Init, PATCH_JUMP);
InjectHook(0x406C80, CStreaming::Shutdown, PATCH_JUMP);