public bool RequestDependency(string dependency) { if (m_knownFiles.Add(dependency)) { if (PlatformStructure != null) { if (PlatformStructure.RequestDependency(dependency)) { return(true); } } if (MixedStructure != null) { if (MixedStructure.RequestDependency(dependency)) { return(true); } } Logger.Instance.Log(LogType.Warning, LogCategory.Import, $"Dependency '{dependency}' hasn't been found"); return(false); } else { return(true); } }
public string RequestDependency(string dependency) { if (PlatformStructure != null) { string path = PlatformStructure.RequestDependency(dependency); if (path != null) { return(path); } } if (MixedStructure != null) { string path = MixedStructure.RequestDependency(dependency); if (path != null) { return(path); } } return(null); }