add temporary sfx toggle

This commit is contained in:
Yonokid
2025-05-15 21:11:15 -04:00
parent a846b0d5a0
commit 154eeae292
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
fps_counter = false fps_counter = false
judge_offset = 0 judge_offset = 0
autoplay = false autoplay = false
sfx = true
[paths] [paths]
tja_path = 'Songs' tja_path = 'Songs'

View File

@@ -472,6 +472,7 @@ class Player:
self.draw_drum_hit_list.append(DrumHitEffect(hit_type, config["side"])) self.draw_drum_hit_list.append(DrumHitEffect(hit_type, config["side"]))
sound = game_screen.sound_don if hit_type == "DON" else game_screen.sound_kat sound = game_screen.sound_don if hit_type == "DON" else game_screen.sound_kat
if get_config()["general"]["sfx"]:
audio.play_sound(sound) audio.play_sound(sound)
self.check_note(game_screen, config["note_type"]) self.check_note(game_screen, config["note_type"])