One loop...lots of white sp--
no, stop bringing that joke back up.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user