From b7dfce0f70e3a0e115181de8d43bd339c60bf46e Mon Sep 17 00:00:00 2001 From: rich <87835336+richTrash21@users.noreply.github.com> Date: Wed, 19 Nov 2025 08:34:37 +0400 Subject: [PATCH] Support for newer hxvlc compiling (#818) --- source/funkin/game/cutscenes/VideoCutscene.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/game/cutscenes/VideoCutscene.hx b/source/funkin/game/cutscenes/VideoCutscene.hx index f3e3e274..12945814 100644 --- a/source/funkin/game/cutscenes/VideoCutscene.hx +++ b/source/funkin/game/cutscenes/VideoCutscene.hx @@ -60,7 +60,9 @@ class VideoCutscene extends Cutscene { add(video = new FlxVideoSprite()); video.antialiasing = true; + #if (hxvlc < version("2.0.0")) video.autoPause = false; // Imma handle it better inside this class, mainly because of the pause menu - Nex + #end video.bitmap.onEndReached.add(close); video.bitmap.onFormatSetup.add(function() if (video.bitmap != null && video.bitmap.bitmapData != null) { final width = video.bitmap.bitmapData.width; @@ -205,6 +207,7 @@ class VideoCutscene extends Cutscene { } } + #if (hxvlc < version("2.0.0")) @:dox(hide) override public function onFocus() { if(FlxG.autoPause && !paused) video.resume(); super.onFocus(); @@ -214,6 +217,7 @@ class VideoCutscene extends Cutscene { if(FlxG.autoPause && !paused) video.pause(); super.onFocusLost(); } + #end public override function pauseCutscene() { video.pause();