One loop...lots of white sp--

no, stop bringing that joke back up.
This commit is contained in:
Jason Felds
2013-04-30 20:37:40 -04:00
parent c22abff76e
commit e689175fa6
+3 -3
View File
@@ -37,17 +37,17 @@ static void Nsis()
vector<RString> vs; vector<RString> vs;
GetDirListing(INSTALLER_LANGUAGES_DIR + "*.ini", vs, false, false); GetDirListing(INSTALLER_LANGUAGES_DIR + "*.ini", vs, false, false);
FOREACH_CONST(RString, vs, s) for (RString const &s : vs)
{ {
RString sThrowAway, sLangCode; RString sThrowAway, sLangCode;
splitpath(*s, sThrowAway, sLangCode, sThrowAway); splitpath(s, sThrowAway, sLangCode, sThrowAway);
const LanguageInfo *pLI = GetLanguageInfo(sLangCode); const LanguageInfo *pLI = GetLanguageInfo(sLangCode);
RString sLangNameUpper = pLI->szEnglishName; RString sLangNameUpper = pLI->szEnglishName;
sLangNameUpper.MakeUpper(); sLangNameUpper.MakeUpper();
IniFile ini; IniFile ini;
if(!ini.ReadFile(INSTALLER_LANGUAGES_DIR + *s)) if(!ini.ReadFile(INSTALLER_LANGUAGES_DIR + s))
RageException::Throw("Error opening file for read."); RageException::Throw("Error opening file for read.");
FOREACH_CONST_Child(&ini, child) FOREACH_CONST_Child(&ini, child)
{ {