diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 718077e56491953d3cfd750d9c6b07e2b3853152..e4a8b570c2b85df5c27468b34ffa01bf9bb7d78b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,6 @@ include: variables: UNREAL_VERSION: "5.5" - CUSTOM_NDISPLAY_CONFIG: "aixcave_5_3_dev.ndisplay" stages: - analyze diff --git a/Content/Config/aixcave.uasset b/Content/Config/aixcave.uasset index 65937f62a73760ab23516ebb89cda72c808f22aa..17efe4c089ee96e659eb8457edc1c6a0efdba582 100644 Binary files a/Content/Config/aixcave.uasset and b/Content/Config/aixcave.uasset differ diff --git a/Source/RWTHVRCluster/Private/RWTHVRCluster.cpp b/Source/RWTHVRCluster/Private/RWTHVRCluster.cpp index 5632551f90a26458579d02705077b14faad5305c..34ed238cc69d225fefbc50c360b487d084ef2beb 100644 --- a/Source/RWTHVRCluster/Private/RWTHVRCluster.cpp +++ b/Source/RWTHVRCluster/Private/RWTHVRCluster.cpp @@ -1,11 +1,31 @@ #include "RWTHVRCluster.h" + +#include "GameDelegates.h" +#include "Logging/StructuredLog.h" + #define LOCTEXT_NAMESPACE "FRWTHVRClusterModule" -void FRWTHVRClusterModule::StartupModule() { ClusterConsole.Register(); } +void FRWTHVRClusterModule::StartupModule() +{ + ClusterConsole.Register(); + + FGameDelegates::Get().GetModifyCookDelegate().AddRaw(this, &FRWTHVRClusterModule::GetPackagesToAlwaysCook); +} void FRWTHVRClusterModule::ShutdownModule() { ClusterConsole.Unregister(); } +void FRWTHVRClusterModule::GetPackagesToAlwaysCook(TConstArrayView<const ITargetPlatform*> InTargetPlatforms, + TArray<FName>& InOutPackagesToCook, + TArray<FName>& InOutPackagesToNeverCook) +{ + InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave"); + InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave_two_player"); + + UE_LOGFMT(LogTemp, Display, + "GetPackagesToAlwaysCook delegate called, adding aixcave configs to always cook list..."); +} + #undef LOCTEXT_NAMESPACE IMPLEMENT_MODULE(FRWTHVRClusterModule, RWTHVRCluster) diff --git a/Source/RWTHVRCluster/Public/RWTHVRCluster.h b/Source/RWTHVRCluster/Public/RWTHVRCluster.h index 71a7693ca67b6ff50ff31fd10125e3803102b9b8..24323555721580d90e40a39e82a2a735a10d83c8 100644 --- a/Source/RWTHVRCluster/Public/RWTHVRCluster.h +++ b/Source/RWTHVRCluster/Public/RWTHVRCluster.h @@ -10,6 +10,9 @@ public: virtual void StartupModule() override; virtual void ShutdownModule() override; + void GetPackagesToAlwaysCook(TConstArrayView<const ITargetPlatform*> InTargetPlatforms, + TArray<FName>& InOutPackagesToCook, TArray<FName>& InOutPackagesToNeverCook); + private: FClusterConsole ClusterConsole; };