Skip to content

Commit 5c90836

Browse files
committed
Video Latency Patch(?)
1 parent 318cca8 commit 5c90836

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/psychlua/FunkinLua.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,9 @@ class FunkinLua {
13811381
game.remove(game.videoCutscene);
13821382
game.videoCutscene.destroy();
13831383
}
1384+
game.paused = true;
13841385
game.videoCutscene = game.startVideo(videoFile, forMidSong, canSkip, shouldLoop, playOnLoad);
1386+
game.paused = false;
13851387
return true;
13861388
}
13871389
else

source/psychlua/LegacyFunkinLua.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,9 @@ class LegacyFunkinLua {
22202220
Lua_helper.add_callback(lua, "startVideo", function(videoFile:String) {
22212221
#if VIDEOS_ALLOWED
22222222
if(FileSystem.exists(Paths.video(videoFile))) {
2223+
PlayState.instance.paused = true;
22232224
PlayState.instance.startVideo(videoFile);
2225+
PlayState.instance.paused = false;
22242226
return true;
22252227
} else {
22262228
luaTrace('startVideo: Video file not found: ' + videoFile, false, false, FlxColor.RED);

0 commit comments

Comments
 (0)