private string GetNationFilePath(e_nation_code nationCode) { var clientConfig = LauncherConfig.GetInstance.ClientConfig; string nationName = nationCode.ToString(); if (nationName == "NUM") { nationName = "ru_ru"; } return(clientConfig.ClientWorkingDirectory + "DataTable\\" + nationName.Replace('_', '-')); }
public bool Init(e_nation_code nationCode) { string path = GetNationFilePath(nationCode); if (!Directory.Exists(path)) { return(false); } if (!File.Exists(path + "\\MiniLauncher.Localization.ini")) { return(false); } LocalozationFile = new IniFile(path + "\\MiniLauncher.Localization.ini"); return(true); }