Add missing FMT_STRING

This commit is contained in:
Phillip Stephens 2021-11-25 15:26:21 -08:00
parent bb9a29c82f
commit 9c0bebdf00
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ bool AGSC::Cook(const hecl::ProjectPath& dir, const hecl::ProjectPath& refOutPat
Header head; Header head;
head.audioDir = "Audio/"sv; head.audioDir = "Audio/"sv;
auto lastComp = path.getLastComponent(); auto lastComp = path.getLastComponent();
auto str = fmt::format("_{:8X}", path.parsedHash32()); auto str = fmt::format(FMT_STRING("_{:8X}"), path.parsedHash32());
auto it = lastComp.rfind(str); auto it = lastComp.rfind(str);
if (it != std::string_view::npos) { if (it != std::string_view::npos) {
lastComp = lastComp.substr(0, it); lastComp = lastComp.substr(0, it);