Integrate C++11 branch into 5_1-new

This commit is contained in:
teejusb
2019-06-22 12:35:38 -07:00
444 changed files with 19503 additions and 21007 deletions
+4 -4
View File
@@ -8,7 +8,7 @@
#include "LuaManager.h"
#include "ProductInfo.h"
#include "DateTime.h"
#include "Foreach.h"
#include "arch/Dialog/Dialog.h"
#include "RageFileManager.h"
#include "SpecialFiles.h"
@@ -38,17 +38,17 @@ static void Nsis()
vector<RString> vs;
GetDirListing(INSTALLER_LANGUAGES_DIR + "*.ini", vs, false, false);
FOREACH_CONST(RString, vs, s)
for (RString const &s : vs)
{
RString sThrowAway, sLangCode;
splitpath(*s, sThrowAway, sLangCode, sThrowAway);
splitpath(s, sThrowAway, sLangCode, sThrowAway);
const LanguageInfo *pLI = GetLanguageInfo(sLangCode);
RString sLangNameUpper = pLI->szEnglishName;
sLangNameUpper.MakeUpper();
IniFile ini;
if(!ini.ReadFile(INSTALLER_LANGUAGES_DIR + *s))
if(!ini.ReadFile(INSTALLER_LANGUAGES_DIR + s))
RageException::Throw("Error opening file for read.");
FOREACH_CONST_Child(&ini, child)
{