From e4564e0d26f8c3f98cb1d2fc7340bc881dd4c289 Mon Sep 17 00:00:00 2001 From: Kolo <67389779+JustKolosaki@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:25:58 +0100 Subject: [PATCH] chart editor inst only songs fix or whatevs --- .../ui/debug/charting/handlers/ChartEditorAudioHandler.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/debug/charting/handlers/ChartEditorAudioHandler.hx b/source/funkin/ui/debug/charting/handlers/ChartEditorAudioHandler.hx index 329873d682..09925ccc6a 100644 --- a/source/funkin/ui/debug/charting/handlers/ChartEditorAudioHandler.hx +++ b/source/funkin/ui/debug/charting/handlers/ChartEditorAudioHandler.hx @@ -51,7 +51,7 @@ class ChartEditorAudioHandler */ public static function loadVocalsFromAsset(state:ChartEditorState, path:String, charId:String, instId:String = '', wipeFirst:Bool = false):Bool { - var trackData:Null = Assets.getBytes(path); + var trackData:Null = Assets.exists(path) ? Assets.getBytes(path) : null; if (trackData != null) { return loadVocalsFromBytes(state, trackData, charId, instId, wipeFirst); @@ -102,7 +102,7 @@ class ChartEditorAudioHandler */ public static function loadInstFromAsset(state:ChartEditorState, path:String, instId:String = '', wipeFirst:Bool = false):Bool { - var trackData:Null = Assets.getBytes(path); + var trackData:Null = Assets.exists(path) ? Assets.getBytes(path) : null; if (trackData != null) { return loadInstFromBytes(state, trackData, instId, wipeFirst);