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:
@@ -252,18 +252,18 @@ FReply SModuleUI::FModuleListItem::OnRecompileClicked()
|
||||
}
|
||||
}
|
||||
|
||||
IHotReloadInterface& HotReloadSupport = FModuleManager::LoadModuleChecked<IHotReloadInterface>("HotReload");
|
||||
if( PackagesToRebind.Num() > 0 )
|
||||
{
|
||||
// Perform a hot reload
|
||||
const bool bWaitForCompletion = true;
|
||||
IHotReloadInterface& HotReloadSupport = FModuleManager::LoadModuleChecked<IHotReloadInterface>("HotReload");
|
||||
HotReloadSupport.RebindPackages(PackagesToRebind, TArray<FName>(), bWaitForCompletion, *GLog);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Perform a regular unload, then reload
|
||||
const bool bReloadAfterRecompile = true;
|
||||
FModuleManager::Get().RecompileModule( ModuleName, bReloadAfterRecompile, *GLog );
|
||||
HotReloadSupport.RecompileModule( ModuleName, bReloadAfterRecompile, *GLog );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user