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;
Log << "Client Locale: " << project->ClientData->locale_name() << std::endl;
for (auto const loaded_achive : *project->ClientData->loadedArchives())
{
Log << "Loaded client Archive: " << loaded_achive->path() << std::endl;
}
// QSettings settings; // QSettings settings;
// bool modern_features = settings.value("modern_features", false).toBool(); // bool modern_features = settings.value("modern_features", false).toBool();
bool modern_features = _configuration->modern_features; bool modern_features = _configuration->modern_features;
if (modern_features) if (modern_features)
{ {
Log << "Modern Features Enabled" << std::endl; Log << "Modern Features Enabled" << std::endl;
loadExtraData(project.value()); loadExtraData(project.value());
} }
else else
{ {
Log << "Modern Features Disabled" << std::endl; Log << "Modern Features Disabled" << std::endl;
} }
return std::make_shared<NoggitProject>(project.value()); return std::make_shared<NoggitProject>(project.value());
} }
void loadExtraData(NoggitProject& project); void loadExtraData(NoggitProject& project);
}; };