From 444914a701628ca2d1937f8d5cc9a714b478917c Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 29 Aug 2023 23:27:54 -0700 Subject: Fix in-game audio indicator Also fix prefab default size (no longer colossal). TODO * Add runtime & unity-time toggles --- GUI/GUI/GUI/PythonWrapper.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'GUI') diff --git a/GUI/GUI/GUI/PythonWrapper.cpp b/GUI/GUI/GUI/PythonWrapper.cpp index 2223706..cf210fa 100644 --- a/GUI/GUI/GUI/PythonWrapper.cpp +++ b/GUI/GUI/GUI/PythonWrapper.cpp @@ -535,6 +535,8 @@ bool PythonWrapper::GenerateAnimator( tastt_generated_dir_path / "Animations"; std::filesystem::path tastt_assets_path = tastt_generated_dir_path / "UnityAssets"; + std::filesystem::path tastt_sounds_path = + tastt_generated_dir_path / "Sounds"; std::filesystem::path tastt_shaders_path = tastt_generated_dir_path / "Shaders"; std::filesystem::path tastt_fonts_path = @@ -648,6 +650,20 @@ bool PythonWrapper::GenerateAnimator( } Log(out, "success!\n"); } + { + Log(out, "Copying canned sounds... "); + auto opts = std::filesystem::copy_options(); + opts |= std::filesystem::copy_options::overwrite_existing; + opts |= std::filesystem::copy_options::recursive; + std::error_code error; + std::filesystem::copy("Resources/Sounds", tastt_sounds_path, opts, error); + if (error.value()) { + Log(out, "failed!\n"); + Log(out, "Error: {} ({})\n", error.message(), error.value()); + return false; + } + Log(out, "success!\n"); + } { Log(out, "Copying canned shaders... "); auto opts = std::filesystem::copy_options(); -- cgit v1.2.3