Fix native libs loading on Android
This commit is contained in:
@@ -347,8 +347,7 @@ bool Scripting::LoadBinaryModules(const String& path, const String& projectFolde
|
|||||||
const auto startTime = DateTime::NowUTC();
|
const auto startTime = DateTime::NowUTC();
|
||||||
#if PLATFORM_ANDROID
|
#if PLATFORM_ANDROID
|
||||||
// On Android all native binaries are side-by-side with the app
|
// On Android all native binaries are side-by-side with the app
|
||||||
nativePath = StringUtils::GetDirectoryName(Platform::GetExecutableFilePath());
|
nativePath = String(StringUtils::GetDirectoryName(Platform::GetExecutableFilePath())) / StringUtils::GetFileName(nativePath);
|
||||||
nativePath /= StringUtils::GetFileName(nativePath);
|
|
||||||
#endif
|
#endif
|
||||||
auto library = Platform::LoadLibrary(nativePath.Get());
|
auto library = Platform::LoadLibrary(nativePath.Get());
|
||||||
if (!library)
|
if (!library)
|
||||||
|
|||||||
Reference in New Issue
Block a user