[XAM] Added achievement types to log table

This commit is contained in:
Adrian
2025-10-30 13:13:00 +00:00
committed by Radosław Gliński
parent 299ba08983
commit 6a8193d360
2 changed files with 49 additions and 2 deletions

View File

@@ -1525,14 +1525,18 @@ X_STATUS Emulator::CompleteLaunch(const std::filesystem::path& path,
// Show achievments data
tabulate::Table table;
table.format().multi_byte_characters(true);
table.add_row({"ID", "Title", "Description", "Gamerscore"});
table.add_row({"ID", "Title", "Description", "Type", "Gamerscore"});
const std::vector<kernel::util::GameInfoDatabase::Achievement>
achievement_list = game_info_database_->GetAchievements();
for (const kernel::util::GameInfoDatabase::Achievement& entry :
achievement_list) {
const std::string type = GetAchievementTypeName(
kernel::xam::GetAchievementType(entry.flags));
table.add_row({fmt::format("{}", entry.id), entry.label,
entry.description, fmt::format("{}", entry.gamerscore)});
entry.description, type,
fmt::format("{}", entry.gamerscore)});
}
XELOGI("-------------------- ACHIEVEMENTS --------------------\n{}",
table.str());