[Scummvm-git-logs] scummvm master -> 3a6566c1f0ead9cf342802077a6849d6682fff40
sev-
noreply at scummvm.org
Sun Nov 5 21:01:44 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3a6566c1f0 DS: Hack to work around ARM/Thumb relocation issues in the SCUMM engine
Commit: 3a6566c1f0ead9cf342802077a6849d6682fff40
https://github.com/scummvm/scummvm/commit/3a6566c1f0ead9cf342802077a6849d6682fff40
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2023-11-05T22:01:40+01:00
Commit Message:
DS: Hack to work around ARM/Thumb relocation issues in the SCUMM engine
Changed paths:
backends/plugins/ds/ds-provider.cpp
diff --git a/backends/plugins/ds/ds-provider.cpp b/backends/plugins/ds/ds-provider.cpp
index 09b876b0230..670dfc6434f 100644
--- a/backends/plugins/ds/ds-provider.cpp
+++ b/backends/plugins/ds/ds-provider.cpp
@@ -33,6 +33,16 @@
#include "backends/plugins/ds/ds-provider.h"
#include "backends/plugins/elf/arm-loader.h"
+// HACK: This is needed so that standard library functions that are only
+// used in plugins can be found in the main executable.
+void pluginHack() {
+ volatile double d = 0.0;
+ double d1 = 0.0;
+
+ d = atan2(d, d);
+ d = modf(d, &d1);
+}
+
class DSDLObject : public ARMDLObject {
protected:
virtual void flushDataCache(void *ptr, uint32 len) const {
More information about the Scummvm-git-logs
mailing list