Update hxcpp, lime and openfl
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
"name": "flixel",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "262f9f39b0d6f741d02e9a4ae0cd9c091ade396b",
|
||||
"ref": "e19af319f8f268cdd914fa135f80e1c64be2319d",
|
||||
"url": "https://github.com/FunkinCrew/flixel"
|
||||
},
|
||||
{
|
||||
@@ -121,7 +121,7 @@
|
||||
"name": "hxcpp",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "c79483a7bf1c0afa77d35a8c564cecac83d5c890",
|
||||
"ref": "2e969d0154ac536c1b5a5c89d2c2b73d7126bd2e",
|
||||
"url": "https://github.com/FunkinCrew/hxcpp"
|
||||
},
|
||||
{
|
||||
@@ -179,7 +179,7 @@
|
||||
"name": "lime",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "363b57b3907a51d1f654804b86e5d8ffd8c4fc44",
|
||||
"ref": "64baef6b8ed16da455530326f8e8d6d0ce6f7e3a",
|
||||
"url": "https://github.com/FunkinCrew/lime"
|
||||
},
|
||||
{
|
||||
@@ -193,7 +193,7 @@
|
||||
"name": "openfl",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "15aff01f6edd05f08e0549e3311cd37dc58e4408",
|
||||
"ref": "b5565adc75511b3e4c8b384ee25ce7401b11ef32",
|
||||
"url": "https://github.com/FunkinCrew/openfl"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -40,11 +40,7 @@ class ApplicationMain
|
||||
|
||||
lime.system.System.__registerEntryPoint("::APP_FILE::", create);
|
||||
|
||||
#if (js && html5)
|
||||
#if (munit || (utest && openfl_enable_utest_legacy_mode))
|
||||
lime.system.System.embed("::APP_FILE::", null, ::WIN_WIDTH::, ::WIN_HEIGHT::);
|
||||
#end
|
||||
#else
|
||||
#if !html5
|
||||
create(null);
|
||||
#end
|
||||
}
|
||||
@@ -331,42 +327,6 @@ class ApplicationMain
|
||||
@:noCompletion @:dox(hide) public static function __init__()
|
||||
{
|
||||
var init = lime.app.Application;
|
||||
|
||||
#if neko
|
||||
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
|
||||
// since Sys.programPath () isn't available in __init__
|
||||
var sys_program_path = {
|
||||
var m = neko.vm.Module.local().name;
|
||||
try
|
||||
{
|
||||
sys.FileSystem.fullPath(m);
|
||||
}
|
||||
catch (e:Dynamic)
|
||||
{
|
||||
// maybe the neko module name was supplied without .n extension...
|
||||
if (!StringTools.endsWith(m, ".n"))
|
||||
{
|
||||
try
|
||||
{
|
||||
sys.FileSystem.fullPath(m + ".n");
|
||||
}
|
||||
catch (e:Dynamic)
|
||||
{
|
||||
m;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var loader = new neko.vm.Loader(untyped $loader);
|
||||
loader.addPath(haxe.io.Path.directory(#if (haxe_ver >= 3.3) sys_program_path #else Sys.executablePath() #end));
|
||||
loader.addPath("./");
|
||||
loader.addPath("@executable_path/");
|
||||
#end
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user