From 991f7312b25ee9d3dc98b39d1944314db026f954 Mon Sep 17 00:00:00 2001 From: Stenzek <stenzek@gmail.com> Date: Sun, 23 Apr 2023 13:19:24 +1000 Subject: [PATCH] SPU: Fix building with SPU_DUMP_ALL_VOICES --- src/core/spu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index 02fc3e5cd..31dd26b28 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -5,8 +5,8 @@ #include "cdrom.h" #include "common/bitfield.h" #include "common/fifo_queue.h" -#include "common/file_system.h" #include "common/log.h" +#include "common/path.h" #include "dma.h" #include "host.h" #include "imgui.h" @@ -1493,7 +1493,7 @@ bool SPU::StartDumpingAudio(const char* filename) else new_suffix.Format("voice%u.wav", i); - std::string voice_filename(FileSystem::ReplaceExtension(filename, new_suffix)); + const std::string voice_filename = Path::ReplaceExtension(filename, new_suffix); if (!s_voice_dump_writers[i]->Open(voice_filename.c_str(), SAMPLE_RATE, 2)) { Log_ErrorPrintf("Failed to open voice dump filename '%s'", voice_filename.c_str());