fix mangles for entries

This commit is contained in:
altalk23 2024-06-08 16:00:04 +03:00
parent 6b2ac24ccd
commit 5969c905a8
3 changed files with 6 additions and 6 deletions
loader/src/platform

View file

@ -23,12 +23,12 @@ Result<> Mod::Impl::loadPlatformBinary() {
}
m_platformInfo = new PlatformInfo{so};
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(so, "geodeImplicitEntry", "_geodeImplicitEntry@0");
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(so, "geodeImplicitEntry", "_Z17geodeImplicitEntryv");
if (geodeImplicitEntry) {
geodeImplicitEntry();
}
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(so, "geodeCustomEntry", "_geodeCustomEntry@0");
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(so, "geodeCustomEntry", "_Z15geodeCustomEntryv");
if (geodeCustomEntry) {
geodeCustomEntry();
}

View file

@ -24,12 +24,12 @@ Result<> Mod::Impl::loadPlatformBinary() {
}
m_platformInfo = new PlatformInfo { dylib };
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(dylib, "geodeImplicitEntry", "_geodeImplicitEntry@0");
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(dylib, "_geodeImplicitEntry", "__Z17geodeImplicitEntryv");
if (geodeImplicitEntry) {
geodeImplicitEntry();
}
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(dylib, "geodeCustomEntry", "_geodeCustomEntry@0");
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(dylib, "_geodeCustomEntry", "__Z15geodeCustomEntryv");
if (geodeCustomEntry) {
geodeCustomEntry();
}

View file

@ -24,12 +24,12 @@ Result<> Mod::Impl::loadPlatformBinary() {
}
m_platformInfo = new PlatformInfo { dylib };
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(dylib, "geodeImplicitEntry", "_geodeImplicitEntry@0");
auto geodeImplicitEntry = findSymbolOrMangled<void(*)()>(dylib, "_geodeImplicitEntry", "__Z17geodeImplicitEntryv");
if (geodeImplicitEntry) {
geodeImplicitEntry();
}
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(dylib, "geodeCustomEntry", "_geodeCustomEntry@0");
auto geodeCustomEntry = findSymbolOrMangled<void(*)()>(dylib, "_geodeCustomEntry", "__Z15geodeCustomEntryv");
if (geodeCustomEntry) {
geodeCustomEntry();
}