Prevent SoundTray crash and Update Assets

This commit is contained in:
sector-a
2025-04-17 19:53:11 +03:00
parent dc000b33eb
commit bb46b699eb
2 changed files with 4 additions and 2 deletions
+1 -1
Submodule assets updated: 6bcd2a8062...5fcd39dd64
+3 -1
View File
@@ -90,8 +90,10 @@ class InitState extends FlxState
funkin.util.WindowUtil.initTracy();
#end
#if FEATURE_HAPTICS
// Setup Haptic feedback
extension.haptics.Haptic.initialize();
#end
#if FEATURE_ADMOB_ADS
// Setup Admob
@@ -115,7 +117,7 @@ class InitState extends FlxState
// but that makes our soundtray not show up on init if we have the game muted.
// We set it to active so it at least calls it's update function once (see FlxGame.onEnterFrame(), it's called there)
// and also see FunkinSoundTray.update() to see what we do and how we check if we are muted or not
// FlxG.game.soundTray.active = true;
if (FlxG.game.soundTray != null) FlxG.game.soundTray.active = true;
// Set the game to a lower frame rate while it is in the background.
FlxG.game.focusLostFramerate = 30;