Make sure lime.Assets when onPreloaderComplete is called
This commit is contained in:
@@ -63,6 +63,7 @@ class ApplicationMain {
|
||||
public static function create ():Void {
|
||||
|
||||
preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: ();
|
||||
preloader.onComplete.add (registerLibrary);
|
||||
|
||||
#if !munit
|
||||
app = new ::APP_MAIN:: ();
|
||||
@@ -170,10 +171,15 @@ class ApplicationMain {
|
||||
#end
|
||||
|
||||
|
||||
public static function start ():Void {
|
||||
private static function registerLibrary ():Void {
|
||||
|
||||
lime.Assets.registerLibrary ("default", new DefaultAssetLibrary ());
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static function start ():Void {
|
||||
|
||||
#if !munit
|
||||
|
||||
var result = app.exec ();
|
||||
|
||||
Reference in New Issue
Block a user