Skip to content

Commit 2ad5933

Browse files
TechnikTilAbnormalPoof
authored andcommitted
Fix VideoCutscene checking by loading the videos OpenFL library
1 parent 1d18a14 commit 2ad5933

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

source/funkin/play/cutscene/VideoCutscene.hx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,10 @@ class VideoCutscene
7373
if (!openfl.Assets.exists(filePath))
7474
{
7575
// Display a popup.
76-
// funkin.util.WindowUtil.showError('Error playing video', 'Video file does not exist: ${filePath}');
77-
// return;
78-
79-
// TODO: After moving videos to their own library,
80-
// this function ALWAYS FAILS on web, but the video still plays.
81-
// I think that's due to a weird quirk with how OpenFL libraries work.
76+
funkin.util.WindowUtil.showError('Error playing video', 'Video file does not exist: ${filePath}');
8277
trace('Video file does not exist: ${filePath}');
78+
79+
return;
8380
}
8481

8582
var rawFilePath = Paths.stripLibrary(filePath);

source/funkin/ui/transition/LoadingState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class LoadingState extends MusicBeatSubState
9595
}
9696

9797
checkLibrary('shared');
98+
checkLibrary('videos');
9899
checkLibrary(stageDirectory);
99100
checkLibrary('tutorial');
100101

0 commit comments

Comments
 (0)