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.
This commit is contained in:
Lioncache
2025-12-06 17:02:06 -05:00
parent d0270402fe
commit 5241a3e7a1

View File

@@ -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/";