Skip to content

Commit

Permalink
4.18 compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Nov 14, 2017
1 parent f13ab2e commit 24f6c5f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BLUI.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"FileVersion": 3,
"FriendlyName": "BLUI",
"Version": 3,
"VersionName": "3.2.2",
"VersionName": "3.2.3",
"Description": "Chromium Embedded Framework (CEF) powered HTML UI and HUD for Unreal Engine 4",
"Category": "UI",
"CreatedBy": "Aaron M. Shea",
Expand Down
4 changes: 2 additions & 2 deletions Source/Blu/Private/Blu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class FBlu : public IBlu
/** IModuleInterface implementation */
virtual void StartupModule() override
{
CefString GameDirCef = *FPaths::ConvertRelativePathToFull(FPaths::GameDir() + "BluCache");
FString ExecutablePath = FPaths::ConvertRelativePathToFull(FPaths::GameDir() + "Plugins/BLUI/ThirdParty/cef/");
CefString GameDirCef = *FPaths::ConvertRelativePathToFull(FPaths::ProjectDir() + "BluCache");
FString ExecutablePath = FPaths::ConvertRelativePathToFull(FPaths::ProjectDir() + "Plugins/BLUI/ThirdParty/cef/");

// Setup the default settings for BluManager
BluManager::settings.windowless_rendering_enabled = true;
Expand Down
2 changes: 1 addition & 1 deletion Source/Blu/Private/BluBluprintFunctionLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ FString UBluBlueprintFunctionLibrary::JSONToString(UBluJsonObj *ObjectToParse)

FString UBluBlueprintFunctionLibrary::GameRootDirectory()
{
return FPaths::ConvertRelativePathToFull(FPaths::GameDir());
return FPaths::ConvertRelativePathToFull(FPaths::ProjectDir());
}


Expand Down
2 changes: 1 addition & 1 deletion Source/Blu/Private/BluEye.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void UBluEye::LoadURL(const FString& newURL)
{

// Get the current working directory
FString GameDir = FPaths::ConvertRelativePathToFull(FPaths::GameDir());
FString GameDir = FPaths::ConvertRelativePathToFull(FPaths::ProjectDir());

// We're loading a local file, so replace the proto with our game directory path
FString LocalFile = newURL.Replace(TEXT("blui://"), *GameDir, ESearchCase::IgnoreCase);
Expand Down
2 changes: 1 addition & 1 deletion Source/BluLoader/Private/BluLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FBluLoader : public IBluLoader
/** IModuleInterface implementation */
virtual void StartupModule() override
{
FString LibPath = FPaths::ConvertRelativePathToFull(FPaths::GameDir() + "Plugins/BLUI/ThirdParty/cef/");
FString LibPath = FPaths::ConvertRelativePathToFull(FPaths::ProjectDir() + "Plugins/BLUI/ThirdParty/cef/");

// If we're on Windows we need to load DLLs from our custom path
#if PLATFORM_WINDOWS
Expand Down

0 comments on commit 24f6c5f

Please sign in to comment.