diff --git a/libs.xml b/libs.xml index 570b451c2..4a21e0463 100644 --- a/libs.xml +++ b/libs.xml @@ -13,6 +13,7 @@ + diff --git a/project.xml b/project.xml index 382ed9f65..57d013ba9 100644 --- a/project.xml +++ b/project.xml @@ -193,6 +193,8 @@ + +
diff --git a/source/funkin/backend/assets/Paths.hx b/source/funkin/backend/assets/Paths.hx index a29d3909e..a6bd9239c 100644 --- a/source/funkin/backend/assets/Paths.hx +++ b/source/funkin/backend/assets/Paths.hx @@ -200,6 +200,9 @@ class Paths return tempFramesCache[key] = loadFrames(assetsPath ? key : Paths.image(key, library, true)); } + inline static public function svg(key:String, ?library:String) + return Assets.getText(image(key, library, false, "svg")); + /** * Checks if the images needed for using getFrames() exist. * @param key Path to the image @@ -363,4 +366,4 @@ class ScriptPathInfo { this.file = file; this.library = library; } -} \ No newline at end of file +} diff --git a/source/funkin/backend/system/macros/Macros.hx b/source/funkin/backend/system/macros/Macros.hx index bb0b4972e..b5d3e5cad 100644 --- a/source/funkin/backend/system/macros/Macros.hx +++ b/source/funkin/backend/system/macros/Macros.hx @@ -22,6 +22,7 @@ class Macros { #if THREE_D_SUPPORT "away3d", "flx3d", #end #if VIDEO_CUTSCENES "hxvlc.flixel", "hxvlc.openfl", #end #if NAPE_ENABLED "nape", "flixel.addons.nape", #end + "flxsvg", // BASE HAXE "DateTools", "EReg", "Lambda", "StringBuf", "haxe.crypto", "haxe.display", "haxe.exceptions", "haxe.extern", "scripting" ]) @@ -48,4 +49,4 @@ class Macros { HashLinkFixer.init(); } } -#end \ No newline at end of file +#end