Adjust how auto-pause works on mobile

Made it so it doesnt freeze the game lol!
This commit is contained in:
MoonDroid
2025-10-09 21:13:12 +08:00
committed by Hundrec
parent 9a842207ac
commit 9dd4791bb8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class Preferences
static function get_autoPause():Bool
{
#if mobile
return true;
return false;
#end
return Save?.instance?.options?.autoPause ?? true;
}
+2 -2
View File
@@ -1626,7 +1626,7 @@ class PlayState extends MusicBeatSubState
*/
public override function onFocus():Void
{
if (VideoCutscene.isPlaying() && Preferences.autoPause && isGamePaused) VideoCutscene.pauseVideo();
if (VideoCutscene.isPlaying() #if !mobile && Preferences.autoPause #end && isGamePaused) VideoCutscene.pauseVideo();
#if html5
else if (Preferences.autoPause) VideoCutscene.resumeVideo();
#end
@@ -1688,7 +1688,7 @@ class PlayState extends MusicBeatSubState
#end
// if else if else if else if else if else AAAAAAAAAAAAAAAAAAAAAAA
if (!isGamePaused && Preferences.autoPause)
if (!isGamePaused #if !mobile && Preferences.autoPause #end)
{
if (currentConversation != null)
{