/// <summary> /// Gets the Folder Path for the given Platform and Media Type. /// /// Users can override the default image paths for platforms. This information is stored in the Data/Platforms.xml file in PlatfromFolder nodes. /// </summary> public static string GetPlatformFolder(string platform, string mediaType) { XElement platformFolder = (from SettingsXml in PlatformList.Descendants("PlatformFolder") where SettingsXml.Element("Platform").Value == platform && SettingsXml.Element("MediaType").Value == mediaType select SettingsXml).FirstOrDefault(); return(platformFolder != null?platformFolder.Element("FolderPath").Value : ""); }