From 5241a3e7a13e20fc1ed1622e10d1a3f31f042716 Mon Sep 17 00:00:00 2001 From: Lioncache Date: Sat, 6 Dec 2025 17:02:06 -0500 Subject: [PATCH] CGameExporter: Use string construction over .data() passthrough This way the string will take into the account the total size of the string view instead of effectively running strlen() over the pointer, allowing non-null-terminated strings to properly work. --- src/Core/GameProject/CGameExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/GameProject/CGameExporter.cpp b/src/Core/GameProject/CGameExporter.cpp index d7fab595..fe51978e 100644 --- a/src/Core/GameProject/CGameExporter.cpp +++ b/src/Core/GameProject/CGameExporter.cpp @@ -188,7 +188,7 @@ bool CGameExporter::ExtractDiscData() nod::ExtractionContext Context; Context.force = false; Context.progressCB = [&](const std::string_view rkDesc, float ProgressPercent) { - mpProgress->Report((int) (ProgressPercent * 10000), 10000, rkDesc.data()); + mpProgress->Report((int) (ProgressPercent * 10000), 10000, TString(rkDesc)); }; TString FilesDir = AbsDiscDir + "files/";