diff --git a/lime/app/Preloader.hx b/lime/app/Preloader.hx index c5f88993a..7c2675e88 100644 --- a/lime/app/Preloader.hx +++ b/lime/app/Preloader.hx @@ -26,7 +26,7 @@ class Preloader #if flash extends Sprite #end { } - public function init (config:Config):Void { + public function create (config:Config):Void { #if flash Lib.current.stage.align = flash.display.StageAlign.TOP_LEFT; diff --git a/lime/system/System.hx b/lime/system/System.hx index 4a4406b71..17dcedde1 100644 --- a/lime/system/System.hx +++ b/lime/system/System.hx @@ -65,7 +65,7 @@ class System { ApplicationMain.config.background = color; ApplicationMain.config.element = element; - ApplicationMain.init (); + ApplicationMain.create (); } #end diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 0a2f87cfd..a028a0108 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -10,11 +10,11 @@ class ApplicationMain { private static var app:lime.app.Application; - public static function init ():Void { + public static function create ():Void { preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: (); preloader.onComplete = start; - preloader.init (config); + preloader.create (config); } @@ -41,7 +41,7 @@ class ApplicationMain { #if (js && munit) embed (null, ::WIN_WIDTH::, ::WIN_HEIGHT::, "::WIN_FLASHBACKGROUND::"); #else - init (); + create (); #end }