Eliminate lpx-paths.hpp, which contains hardwired paths.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
#include "LockedWrapper.h"
|
||||
#include "lpx-drvutil.hpp"
|
||||
#include "lpx-paths.hpp"
|
||||
#include "Misc/Paths.h"
|
||||
|
||||
using namespace LpxCommonTypes;
|
||||
|
||||
@@ -17,7 +17,13 @@ void FlxLockedWrapper::InitWrapper() {
|
||||
// Already initialized.
|
||||
return;
|
||||
}
|
||||
FString dll((const UTF8CHAR*)LUPREX_DLL_PATH);
|
||||
#if PLATFORM_LINUX
|
||||
FString dll = FPaths::Combine(FPaths::ProjectDir(), TEXT("luprex/build/Linux/luprexlib.so"));
|
||||
#elif PLATFORM_WINDOWS
|
||||
FString dll = FPaths::Combine(FPaths::ProjectDir(), TEXT("luprex/build/Windows/luprexlib.dll"));
|
||||
#else
|
||||
#error "Unsupported platform"
|
||||
#endif
|
||||
UE_LOG(LogLuprex, Verbose, TEXT("Luprex DLL Path: %s"), *dll);
|
||||
void* DLL = FPlatformProcess::GetDllHandle(*dll);
|
||||
if (DLL != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user