|
|
|
@ -434,15 +434,12 @@ void MwIniImporter::insertMultistrmap(multistrmap& cfg, const std::string& key,
|
|
|
|
|
void MwIniImporter::importArchives(multistrmap& cfg, const multistrmap& ini) const
|
|
|
|
|
{
|
|
|
|
|
std::vector<std::string> archives;
|
|
|
|
|
std::string baseArchive("Archives:Archive ");
|
|
|
|
|
std::string archive;
|
|
|
|
|
|
|
|
|
|
// Search archives listed in ini file
|
|
|
|
|
auto it = ini.begin();
|
|
|
|
|
for (int i = 0; it != ini.end(); i++)
|
|
|
|
|
{
|
|
|
|
|
archive = baseArchive;
|
|
|
|
|
archive.append(std::to_string(i));
|
|
|
|
|
std::string archive("Archives:Archive " + std::to_string(i));
|
|
|
|
|
|
|
|
|
|
it = ini.find(archive);
|
|
|
|
|
if (it == ini.end())
|
|
|
|
@ -537,8 +534,7 @@ void MwIniImporter::importGameFiles(
|
|
|
|
|
auto it = ini.begin();
|
|
|
|
|
for (int i = 0; it != ini.end(); i++)
|
|
|
|
|
{
|
|
|
|
|
std::string gameFile("Game Files:GameFile");
|
|
|
|
|
gameFile.append(std::to_string(i));
|
|
|
|
|
std::string gameFile("Game Files:GameFile" + std::to_string(i));
|
|
|
|
|
|
|
|
|
|
it = ini.find(gameFile);
|
|
|
|
|
if (it == ini.end())
|
|
|
|
|