File tree Expand file tree Collapse file tree 6 files changed +14
-8
lines changed Expand file tree Collapse file tree 6 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,11 @@ class InitState extends FlxState
402402 }
403403 else if (params .song .shouldLoadSong && params .song .songPath != null )
404404 {
405+ #if sys
405406 FlxG .switchState (() -> new ChartPlaytestMenu (params .song .songPath ));
407+ #else
408+ FlxG .switchState (() -> new TitleState ());
409+ #end
406410 }
407411 else
408412 {
Original file line number Diff line number Diff line change @@ -499,9 +499,9 @@ class GameOverSubState extends MusicBeatSubState
499499 else
500500 {
501501 onComplete = function () {
502- isStarting = true ;
502+ isStarting = false ;
503503 // We need to force to ensure that the non-starting music plays.
504- startDeathMusic (0 .0 , true );
504+ startDeathMusic (1 .0 , true );
505505 };
506506 }
507507 }
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 11package funkin .ui .debug .playtest ;
22
3+ #if sys
34import flixel .text .FlxText ;
45import flixel .util .FlxColor ;
56import flixel .tweens .FlxTween ;
@@ -97,3 +98,4 @@ class ChartPlaytestMenu extends MusicBeatState
9798 #end
9899 }
99100}
101+ #end
Original file line number Diff line number Diff line change 11package funkin .ui .debug .playtest ;
22
3+ #if sys
34import flixel .group .FlxSpriteGroup ;
45import flixel .text .FlxText ;
56import flixel .util .FlxColor ;
@@ -104,3 +105,4 @@ class ChartPlaytestMenuButtonListToggle extends ChartPlaytestMenuButtonBase
104105 return ' $title : $selectedItem ' ;
105106 }
106107}
108+ #end
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments