Skip to content

Commit b7dfce0

Browse files
authored
Support for newer hxvlc compiling (#818)
1 parent b1de3b1 commit b7dfce0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/game/cutscenes/VideoCutscene.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)