From 91cbfceebd2ffa9a3bd31bd031e8059e7c21c154 Mon Sep 17 00:00:00 2001 From: Microkat <89645987+KadePleaseHelpMe@users.noreply.github.com> Date: Wed, 15 Jan 2025 20:05:18 -0500 Subject: [PATCH] Optimize SVG Paths getPath('images/...') => image('...') --- source/funkin/backend/assets/Paths.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/assets/Paths.hx b/source/funkin/backend/assets/Paths.hx index d38f81613..559a47461 100644 --- a/source/funkin/backend/assets/Paths.hx +++ b/source/funkin/backend/assets/Paths.hx @@ -201,7 +201,7 @@ class Paths } inline static public function svg(key:String, ?library:String) - return Assets.getText(getPath('images/$key.svg', library)); + return Assets.getText(image(key, library, false, "svg")); /** @@ -343,4 +343,4 @@ class ScriptPathInfo { this.file = file; this.library = library; } -} \ No newline at end of file +}