File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
source/funkin/game/cutscenes Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ class VideoCutscene extends Cutscene {
6060
6161 add (video = new FlxVideoSprite ());
6262 video .antialiasing = true ;
63+ #if (hxvlc < version("2.0.0"))
6364 video .autoPause = false ; // Imma handle it better inside this class, mainly because of the pause menu - Nex
65+ #end
6466 video .bitmap .onEndReached .add (close );
6567 video .bitmap .onFormatSetup .add (function () if (video .bitmap != null && video .bitmap .bitmapData != null ) {
6668 final width = video .bitmap .bitmapData .width ;
@@ -205,6 +207,7 @@ class VideoCutscene extends Cutscene {
205207 }
206208 }
207209
210+ #if (hxvlc < version("2.0.0"))
208211 @:dox (hide ) override public function onFocus () {
209212 if (FlxG .autoPause && ! paused ) video .resume ();
210213 super .onFocus ();
@@ -214,6 +217,7 @@ class VideoCutscene extends Cutscene {
214217 if (FlxG .autoPause && ! paused ) video .pause ();
215218 super .onFocusLost ();
216219 }
220+ #end
217221
218222 public override function pauseCutscene () {
219223 video .pause ();
You can’t perform that action at this time.
0 commit comments