You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none [CL 5110714 by Chris Gagnon in Dev-Editor branch]
This commit is contained in:
@@ -69,6 +69,28 @@ bool FSourceCodeAccessModule::CanAccessSourceCode() const
|
||||
return CurrentSourceCodeAccessor->CanAccessSourceCode();
|
||||
}
|
||||
|
||||
bool FSourceCodeAccessModule::CanCompileSourceCode() const
|
||||
{
|
||||
#if PLATFORM_WINDOWS
|
||||
// Need to have Visual Studio installed to compile on Windows, regardless of chosen IDE
|
||||
return IsSourceCodeAccessorAvailable("VisualStudio2017") || IsSourceCodeAccessorAvailable("VisualStudio2019");
|
||||
#else
|
||||
// Default behavior
|
||||
return CanAccessSourceCode();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool FSourceCodeAccessModule::IsSourceCodeAccessorAvailable(FName Name) const
|
||||
{
|
||||
for (ISourceCodeAccessor* Accessor : IModularFeatures::Get().GetModularFeatureImplementations<ISourceCodeAccessor>(SourceCodeAccessorFeatureName))
|
||||
{
|
||||
if (Accessor->GetFName() == Name)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
ISourceCodeAccessor& FSourceCodeAccessModule::GetAccessor() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user