summaryrefslogtreecommitdiffstats
path: root/GUI
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-08-29 23:27:54 -0700
committeryum <yum.food.vr@gmail.com>2023-08-29 23:29:04 -0700
commit444914a701628ca2d1937f8d5cc9a714b478917c (patch)
treed55580cbaebf6bdd8de1a98ebe50a80de70fb1cd /GUI
parent2daa2c8057cf036357a64e09925487e6f5c0025e (diff)
Fix in-game audio indicator
Also fix prefab default size (no longer colossal). TODO * Add runtime & unity-time toggles
Diffstat (limited to 'GUI')
-rw-r--r--GUI/GUI/GUI/PythonWrapper.cpp16
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;