log MPQ loading

This commit is contained in:
T1ti
2024-12-22 02:57:04 +01:00
parent 7e5a764fcc
commit acc8d7e9aa
2 changed files with 23 additions and 15 deletions

View File

@@ -351,21 +351,29 @@ namespace Noggit::Project
return {}; return {};
} }
// Log << "Client Version: " << static_cast<int>(project->ClientData->version()) << std::endl;
// QSettings settings; Log << "Client Locale: " << project->ClientData->locale_name() << std::endl;
// bool modern_features = settings.value("modern_features", false).toBool();
bool modern_features = _configuration->modern_features; for (auto const loaded_achive : *project->ClientData->loadedArchives())
if (modern_features) {
{ Log << "Loaded client Archive: " << loaded_achive->path() << std::endl;
Log << "Modern Features Enabled" << std::endl; }
loadExtraData(project.value());
} // QSettings settings;
else // bool modern_features = settings.value("modern_features", false).toBool();
{ bool modern_features = _configuration->modern_features;
Log << "Modern Features Disabled" << std::endl; if (modern_features)
} {
return std::make_shared<NoggitProject>(project.value()); Log << "Modern Features Enabled" << std::endl;
} loadExtraData(project.value());
}
else
{
Log << "Modern Features Disabled" << std::endl;
}
return std::make_shared<NoggitProject>(project.value());
}
void loadExtraData(NoggitProject& project); void loadExtraData(NoggitProject& project);
}; };