fixed fonts
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1274
|
||||
1277
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.mods;
|
||||
|
||||
import funkin.system.Main;
|
||||
import openfl.utils.AssetCache;
|
||||
import flixel.util.FlxSignal.FlxTypedSignal;
|
||||
import openfl.utils.Assets;
|
||||
@@ -76,6 +77,7 @@ class ModsFolder {
|
||||
unloadMod(m);
|
||||
|
||||
loadMod(ModsFolder.currentModFolder = mod);
|
||||
Main.refreshAssets();
|
||||
onModSwitch.dispatch(ModsFolder.currentModFolder);
|
||||
FlxG.resetState();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package funkin.system;
|
||||
|
||||
import haxe.io.Path;
|
||||
import funkin.mods.LimeLibrarySymbol;
|
||||
import flixel.FlxG;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
@@ -153,7 +154,11 @@ class Paths
|
||||
|
||||
inline static public function font(key:String)
|
||||
{
|
||||
#if sys
|
||||
return OpenFlAssets.getPath(getPath('fonts/$key', FONT, null));
|
||||
#else
|
||||
return getPath('fonts/$key', FONT, null);
|
||||
#end
|
||||
}
|
||||
|
||||
inline static public function getSparrowAtlas(key:String, ?library:String)
|
||||
|
||||
Reference in New Issue
Block a user