From 1a7d2cf1a2af7b325186ec897c01a46eac59f73b Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 5 Oct 2024 12:56:14 +0200 Subject: [PATCH] chore: fix build --- src/Unlinker/ContentLister/ContentPrinter.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Unlinker/ContentLister/ContentPrinter.cpp b/src/Unlinker/ContentLister/ContentPrinter.cpp index 54c707dd..612940db 100644 --- a/src/Unlinker/ContentLister/ContentPrinter.cpp +++ b/src/Unlinker/ContentLister/ContentPrinter.cpp @@ -1,5 +1,8 @@ #include "ContentPrinter.h" +#include +#include + ContentPrinter::ContentPrinter(Zone* zone) { m_zone = zone; @@ -8,13 +11,11 @@ ContentPrinter::ContentPrinter(Zone* zone) void ContentPrinter::PrintContent() const { const auto* pools = m_zone->m_pools.get(); - printf("Zone '%s' (%s)\n", m_zone->m_name.c_str(), m_zone->m_game->GetShortName().c_str()); - puts("Content:"); + std::cout << std::format("Zone '{}' ({})\n", m_zone->m_name, m_zone->m_game->GetShortName()); + std::cout << "Content:\n"; for (const auto& asset : *pools) - { - printf("%s, %s\n", pools->GetAssetTypeName(asset->m_type), asset->m_name.c_str()); - } + std::cout << std::format("{}, {}\n", *pools->GetAssetTypeName(asset->m_type), asset->m_name); - puts(""); + std::cout << "\n"; }