File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
Source/Ecsact/Public/EcsactUnreal Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 44UEcsactSettings::UEcsactSettings () {
55}
66
7+ auto UEcsactSettings::GetDefaultEcsactRuntimeLibraryPath () const -> FString {
8+ return FPaths::Combine (
9+ FPaths::ProjectDir (),
10+ TEXT (" Binaries/Win64/EcsactRuntime.dll" )
11+ );
12+ }
13+
714auto UEcsactSettings::GetEcsactRuntimeLibraryPath () const -> FString {
815#if WITH_EDITORONLY_DATA
916 if (bEnableBuild) {
10- return FPaths::Combine (
11- FPaths::ProjectDir (),
12- TEXT (" Binaries/Win64/EcsactRuntime.dll" )
13- );
17+ return GetDefaultEcsactRuntimeLibraryPath ();
18+ }
19+ #endif
20+
21+ if (CustomEcsactRuntimeLibraryPath.IsEmpty ()) {
22+ return GetDefaultEcsactRuntimeLibraryPath ();
1423 } else {
1524 if (!FPaths::IsRelative (CustomEcsactRuntimeLibraryPath)) {
1625 return CustomEcsactRuntimeLibraryPath;
@@ -21,12 +30,6 @@ auto UEcsactSettings::GetEcsactRuntimeLibraryPath() const -> FString {
2130 );
2231 }
2332 }
24- #else
25- return FPaths::Combine (
26- FPaths::ProjectDir (),
27- TEXT (" Binaries/Win64/EcsactRuntime.dll" )
28- );
29- #endif
3033}
3134
3235#if WITH_EDITORONLY_DATA
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ class ECSACT_API UEcsactSettings : public UObject {
7373 )
7474 TArray<FString> Recipes;
7575
76+ auto GetDefaultEcsactRuntimeLibraryPath () const -> FString;
77+
7678 auto GetEcsactRuntimeLibraryPath () const -> FString;
7779
7880 auto GetValidRecipes () const -> TArray<FString>;
You can’t perform that action at this time.
0 commit comments