aboutsummaryrefslogtreecommitdiff
path: root/Source/NVIDIAGfeSDK/Private
diff options
context:
space:
mode:
authorbrong <[email protected]>2018-05-17 17:41:27 +0800
committerbrong <[email protected]>2018-05-25 18:14:43 +0800
commit54c5bb851e8fec157d28af6361e350fde31caa11 (patch)
tree154adbf1052ae7ab59a84e100992c8e43489beaa /Source/NVIDIAGfeSDK/Private
parentFixed errors related to new struct fields in the new SDK version (diff)
downloadgfesdk-ue4plugin-54c5bb851e8fec157d28af6361e350fde31caa11.tar.xz
gfesdk-ue4plugin-54c5bb851e8fec157d28af6361e350fde31caa11.zip
No longer find delay loaded GfeSDK.dll from hard-coded directory.
Diffstat (limited to 'Source/NVIDIAGfeSDK/Private')
-rw-r--r--Source/NVIDIAGfeSDK/Private/FNVIDIAGfeSDK.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/NVIDIAGfeSDK/Private/FNVIDIAGfeSDK.cpp b/Source/NVIDIAGfeSDK/Private/FNVIDIAGfeSDK.cpp
index 5566ab7..8464b9b 100644
--- a/Source/NVIDIAGfeSDK/Private/FNVIDIAGfeSDK.cpp
+++ b/Source/NVIDIAGfeSDK/Private/FNVIDIAGfeSDK.cpp
@@ -10,6 +10,7 @@
#include "NVIDIAGfeSDKPrivatePCH.h"
#include "Runtime/Core/Public/Misc/Paths.h"
#include "Runtime/Core/Public/Windows/WindowsPlatformProcess.h"
+#include "IPluginManager.h"
#include "gfesdk/sdk_types.h"
@@ -49,9 +50,9 @@ void FNVIDIAGfeSDK::StartupModule()
#endif // PLATFORM_WINDOWS
// Get the base directory of this plugin
- const FString PluginPath = FString(FPaths::EnginePluginsDir());
+ const FString PluginPath = IPluginManager::Get().FindPlugin(TEXT("NVIDIAGfeSDK"))->GetBaseDir();
- FString RootDllPath = PluginPath / FString::Printf(TEXT("Runtime/NVIDIA/GfeSDK/ThirdParty/NVIDIAGfeSDK/redist/")) / WinDir;
+ FString RootDllPath = PluginPath / FString::Printf(TEXT("ThirdParty/NVIDIAGfeSDK/redist/")) / WinDir;
FPlatformProcess::PushDllDirectory(*RootDllPath);
LibHandle = FPlatformProcess::GetDllHandle(*(RootDllPath + "GfeSDK.dll"));