diff options
Diffstat (limited to 'GUI')
| -rw-r--r-- | GUI/GUI/GUI/PythonWrapper.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 = @@ -649,6 +651,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(); opts |= std::filesystem::copy_options::overwrite_existing; |
