Huge optimization

This commit is contained in:
NeeEoo
2023-07-21 16:28:40 +02:00
parent 8a2ac9e1d4
commit e9db14487d
3 changed files with 39 additions and 13 deletions
-11
View File
@@ -48,8 +48,6 @@ class Assets
{
public static var cache:IAssetCache = new AssetCache();
public static var forceAssetLibrary:LimeAssetLibrary = null;
@:noCompletion private static var dispatcher:EventDispatcher #if !macro = new EventDispatcher() #end;
private static var libraryBindings:Map<String, AssetLibrary> = new Map();
@@ -78,9 +76,6 @@ class Assets
**/
public static function exists(id:String, type:AssetType = null):Bool
{
if(forceAssetLibrary != null) {
return forceAssetLibrary.exists(id, cast type);
}
#if lime
return LimeAssets.exists(id, cast type);
#else
@@ -265,9 +260,6 @@ class Assets
**/
public static function getPath(id:String):String
{
if(forceAssetLibrary != null) {
return forceAssetLibrary.getPath(id);
}
#if lime
return LimeAssets.getPath(id);
#else
@@ -325,9 +317,6 @@ class Assets
**/
public static function getText(id:String):String
{
if(forceAssetLibrary != null) {
return forceAssetLibrary.getText(id);
}
#if lime
return LimeAssets.getText(id);
#else