Skip to content
Snippets Groups Projects
Select Git revision
  • abdfbfa52e8e92c41ec41ac00c7fc60d263bc79b
  • 5.4 default protected
  • dev/5.6
  • dev/5.4
  • dev/5.3_downgrade
  • dev/5.5
  • 5.3 protected
  • feature/present_barrier
8 results

RWTHVRCluster.cpp

Blame
  • David Gilbert's avatar
    David Gilbert authored
    chore: Uses GetModifyCookDelegate to add the ndisplay configs to always cook. Removes not working config ini
    abdfbfa5
    History
    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)