Select Git revision
RWTHVRCluster.cpp

David Gilbert authored
chore: Uses GetModifyCookDelegate to add the ndisplay configs to always cook. Removes not working config ini
RWTHVRCluster.cpp 990 B
#include "RWTHVRCluster.h"
#include "GameDelegates.h"
#include "Logging/StructuredLog.h"
#define LOCTEXT_NAMESPACE "FRWTHVRClusterModule"
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.aixcave");
InOutPackagesToCook.Add("/RWTHVRCluster/Config/aixcave_two_player.aixcave_two_player");
UE_LOGFMT(LogTemp, Display,
"GetPackagesToAlwaysCook delegate called, adding aixcave configs to always cook list...");
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FRWTHVRClusterModule, RWTHVRCluster)