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:
Ben Marsh
2014-09-05 12:46:22 -04:00
committed by UnrealBot
parent de5950fa40
commit d591804587
24 changed files with 1061 additions and 986 deletions

View File

@@ -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 );
}
}