Add Emscripten support

This commit is contained in:
Joshua Granick
2015-02-12 19:04:40 -08:00
parent 623547bbf5
commit 62194c7842
10 changed files with 145 additions and 70 deletions

View File

@@ -13,6 +13,11 @@ class ApplicationMain {
public static function create ():Void {
#if !munit
app = new ::APP_MAIN:: ();
app.create (config);
#end
preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: ();
preloader.onComplete = start;
preloader.create (config);
@@ -71,12 +76,9 @@ class ApplicationMain {
#if !munit
app = new ::APP_MAIN:: ();
app.create (config);
var result = app.exec ();
#if (sys && !nodejs)
#if (sys && !nodejs && !emscripten)
Sys.exit (result);
#end