fix: Unix build issues with dladdr

This commit is contained in:
WerWolv
2024-03-13 08:38:40 +01:00
parent fdf01dfb50
commit 3798654f92
2 changed files with 3 additions and 4 deletions

View File

@@ -77,8 +77,7 @@ namespace hex::script::loader {
if (library == "cimgui") {
return getExport<void*>(ImHexApi::System::getLibImHexModuleHandle(), symbolName);
} else if (library == "ImHex") {
auto address = getExport<void*>(hex::getContainingModule((void*)&pInvokeOverride), symbolName);
return address;
return getExport<void*>(hex::getContainingModule((void*)&pInvokeOverride), symbolName);
}
return nullptr;