You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Move hot reload functionality from Core into the HotReload module. Precursor to removing assumptions about IS_MONOLITHIC and supporting hybrid monolithic configurations.
[CL 2286426 by Ben Marsh in Main branch]
This commit is contained in:
@@ -604,11 +604,11 @@ void FMainFrameModule::StartupModule( )
|
||||
|
||||
SetLevelNameForWindowTitle(TEXT(""));
|
||||
|
||||
FModuleManager::Get().OnModuleCompilerStarted().AddRaw( this, &FMainFrameModule::HandleLevelEditorModuleCompileStarted );
|
||||
FModuleManager::Get().OnModuleCompilerFinished().AddRaw( this, &FMainFrameModule::HandleLevelEditorModuleCompileFinished );
|
||||
|
||||
// Register to find out about when hot reload completes, so we can show a notification
|
||||
IHotReloadModule::Get().OnHotReload().AddRaw( this, &FMainFrameModule::HandleHotReloadFinished );
|
||||
IHotReloadModule& HotReloadModule = IHotReloadModule::Get();
|
||||
HotReloadModule.OnModuleCompilerStarted().AddRaw( this, &FMainFrameModule::HandleLevelEditorModuleCompileStarted );
|
||||
HotReloadModule.OnModuleCompilerFinished().AddRaw( this, &FMainFrameModule::HandleLevelEditorModuleCompileFinished );
|
||||
HotReloadModule.OnHotReload().AddRaw( this, &FMainFrameModule::HandleHotReloadFinished );
|
||||
|
||||
#if WITH_EDITOR
|
||||
ISourceCodeAccessModule& SourceCodeAccessModule = FModuleManager::LoadModuleChecked<ISourceCodeAccessModule>("SourceCodeAccess");
|
||||
@@ -647,12 +647,12 @@ void FMainFrameModule::ShutdownModule( )
|
||||
|
||||
if( IHotReloadModule::IsAvailable() )
|
||||
{
|
||||
IHotReloadModule::Get().OnHotReload().RemoveAll( this );
|
||||
IHotReloadModule& HotReloadModule = IHotReloadModule::Get();
|
||||
HotReloadModule.OnHotReload().RemoveAll( this );
|
||||
HotReloadModule.OnModuleCompilerStarted().RemoveAll( this );
|
||||
HotReloadModule.OnModuleCompilerFinished().RemoveAll( this );
|
||||
}
|
||||
|
||||
FModuleManager::Get().OnModuleCompilerStarted().RemoveAll( this );
|
||||
FModuleManager::Get().OnModuleCompilerFinished().RemoveAll( this );
|
||||
|
||||
#if WITH_EDITOR
|
||||
if(FModuleManager::Get().IsModuleLoaded("SourceCodeAccess"))
|
||||
{
|
||||
@@ -731,7 +731,7 @@ void FMainFrameModule::HandleLevelEditorModuleCompileStarted( )
|
||||
|
||||
void FMainFrameModule::OnCancelCodeCompilationClicked()
|
||||
{
|
||||
FModuleManager::Get().RequestStopCompilation();
|
||||
IHotReloadModule::Get().RequestStopCompilation();
|
||||
}
|
||||
|
||||
void FMainFrameModule::HandleLevelEditorModuleCompileFinished(const FString& LogDump, ECompilationResult::Type CompilationResult, bool bShowLog)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "HotReloadInterface.h"
|
||||
|
||||
/**
|
||||
* Editor main frame module
|
||||
|
||||
Reference in New Issue
Block a user