Skip to content

Commit

Permalink
Optimize SVG Paths
Browse files Browse the repository at this point in the history
getPath('images/...') => image('...')
  • Loading branch information
KadePleaseHelpMe authored Jan 16, 2025
1 parent 4f41d3f commit 91cbfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/funkin/backend/assets/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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"));


/**
Expand Down Expand Up @@ -343,4 +343,4 @@ class ScriptPathInfo {
this.file = file;
this.library = library;
}
}
}

0 comments on commit 91cbfce

Please sign in to comment.