From d558a4e075158d9c9e3c594ee0cfbf584bad4596 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 23 Sep 2024 00:31:36 -0700 Subject: [PATCH] Use concat instead of replace_extension for guess sound filename function --- src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp b/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp index 0c60f554..a9f68319 100644 --- a/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp +++ b/src/ObjLoading/ObjContainer/SoundBank/SoundBankWriter.cpp @@ -227,12 +227,12 @@ public: bool GuessFilenameAndLoadFile(const std::string& filePath, const SoundBankEntryInfo& sound, std::unique_ptr& soundData, size_t& soundSize) { - fs::path pathWithExtension = fs::path(filePath).replace_extension(".wav"); + fs::path pathWithExtension = fs::path(filePath).concat(".wav"); auto file = m_asset_search_path->Open(pathWithExtension.string()); if (file.IsOpen()) return LoadWavFile(file, sound, soundData, soundSize); - pathWithExtension = fs::path(filePath).replace_extension(".flac"); + pathWithExtension = fs::path(filePath).concat(".flac"); file = m_asset_search_path->Open(pathWithExtension.string()); if (file.IsOpen()) return LoadFlacFile(file, pathWithExtension.string(), sound, soundData, soundSize);