Skip to content

Commit b6248ca

Browse files
committed
Don't validate video path if video playback is disabled
1 parent 41bd47d commit b6248ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/funkin/play/cutscene/VideoCutscene.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class VideoCutscene
7070
{
7171
if (PlayState.instance == null) return;
7272

73+
#if FEATURE_VIDEO_PLAYBACK
7374
if (!openfl.Assets.exists(filePath))
7475
{
7576
// Display a popup.
@@ -78,8 +79,7 @@ class VideoCutscene
7879

7980
return;
8081
}
81-
82-
var rawFilePath = Paths.stripLibrary(filePath);
82+
#end
8383

8484
// Trigger the cutscene. Don't play the song in the background.
8585
PlayState.instance.isInCutscene = true;
@@ -105,7 +105,7 @@ class VideoCutscene
105105
finishVideo();
106106
#else
107107
#if html5
108-
playVideoHTML5(rawFilePath);
108+
playVideoHTML5(Paths.stripLibrary(filePath));
109109
#elseif hxvlc
110110
playVideoNative(filePath);
111111
#else

0 commit comments

Comments
 (0)