From df05e8519bb06e2a741a9f8cf77e241b53cc13b4 Mon Sep 17 00:00:00 2001 From: ManDude <7569514+ManDude@users.noreply.github.com> Date: Mon, 9 Aug 2021 02:06:34 +0100 Subject: [PATCH] [vag tool] split language outputs by folder --- decompiler/data/streamed_audio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/decompiler/data/streamed_audio.cpp b/decompiler/data/streamed_audio.cpp index 21375891c1..2f6945e4c7 100644 --- a/decompiler/data/streamed_audio.cpp +++ b/decompiler/data/streamed_audio.cpp @@ -167,9 +167,10 @@ AudioFileInfo process_audio_file(const std::vector& data, assert(reader.read() == 0); } - auto file_name = fmt::format("{}_{}.wav", remove_trailing_spaces(name), suffix); + file_util::create_dir_if_needed(file_util::get_file_path({"assets", "streaming_audio", suffix})); + auto file_name = fmt::format("{}.wav", remove_trailing_spaces(name)); write_wave_file_mono(decoded_samples, header.sample_rate, - file_util::get_file_path({"assets", "streaming_audio", file_name})); + file_util::get_file_path({"assets", "streaming_audio", suffix, file_name})); std::string vag_filename; for (int i = 0; i < 16; i++) {