Skip to content

Commit

Permalink
Lime library unloading fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Jun 13, 2024
1 parent cd1564f commit aa4cc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lime/utils/Assets.hx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ class Assets
return cast loadAsset(id, TEXT, false);
}

public static function registerLibrary(name:String, library:AssetLibrary):Void
public static function registerLibrary(name:String, library:AssetLibrary, unload:Bool = true):Void
{
if (name == null || name == "")
{
Expand All @@ -505,7 +505,7 @@ class Assets
}
else
{
unloadLibrary(name);
if (unload) unloadLibrary(name);
}
}

Expand Down

0 comments on commit aa4cc49

Please sign in to comment.