Skip to content

Commit 777a1b3

Browse files
authored
Merge branch 'develop' into center-waveforms
2 parents 4b04cc7 + 2ad5933 commit 777a1b3

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

source/funkin/InitState.hx

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

source/funkin/play/GameOverSubState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

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/debug/playtest/ChartPlaytestMenu.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package funkin.ui.debug.playtest;
22

3+
#if sys
34
import flixel.text.FlxText;
45
import flixel.util.FlxColor;
56
import flixel.tweens.FlxTween;
@@ -97,3 +98,4 @@ class ChartPlaytestMenu extends MusicBeatState
9798
#end
9899
}
99100
}
101+
#end

source/funkin/ui/debug/playtest/ChartPlaytestMenuButton.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package funkin.ui.debug.playtest;
22

3+
#if sys
34
import flixel.group.FlxSpriteGroup;
45
import flixel.text.FlxText;
56
import flixel.util.FlxColor;
@@ -104,3 +105,4 @@ class ChartPlaytestMenuButtonListToggle extends ChartPlaytestMenuButtonBase
104105
return '$title: $selectedItem';
105106
}
106107
}
108+
#end

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)