private string GetFilePath() { Locale[] loadOrder = Localization.GetLoadOrder(false); for (int i = 0; i < loadOrder.Length; i++) { string fileName = "CREDITS_" + (!this.m_displayingLatestYear ? "2014" : "2015") + ".txt"; string assetPath = GameStrings.GetAssetPath(loadOrder[i], fileName); if (System.IO.File.Exists(assetPath)) { return(assetPath); } } return(null); }
private static string GetFilePathFromCategory(GameStringCategory cat, Locale locale) { string fileName = string.Format("{0}.txt", cat); return(GameStrings.GetAssetPath(locale, fileName)); }