From c462a5f8d03bdb05f14bd98d762373fc7b8dee51 Mon Sep 17 00:00:00 2001 From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com> Date: Mon, 19 May 2025 17:17:28 +0300 Subject: [PATCH] videos: initialize hxvlc's handle early for faster loading speeds. --- source/Main.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/Main.hx b/source/Main.hx index 3341edd63..f7c589427 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -9,6 +9,9 @@ import funkin.util.logging.CrashHandler; import funkin.ui.debug.MemoryCounter; import funkin.save.Save; import haxe.ui.Toolkit; +#if hxvlc +import hxvlc.util.Handle; +#end import openfl.display.FPS; import openfl.display.Sprite; import openfl.events.Event; @@ -117,6 +120,11 @@ class Main extends Sprite // George recommends binding the save before FlxGame is created. Save.load(); + #if hxvlc + // Initialize hxvlc's Handle here so the videos are loading faster. + Handle.init(); + #end + // Don't call anything from the preferences until the save is loaded! #if web // set this variable (which is a function) from the lime version at lime/_internal/backend/html5/HTML5Application.hx