cleanup and 32 bit fallback

This commit is contained in:
2026-08-06 00:40:20 +02:00
parent fedc18c3ca
commit f88e9ce7d0
2 changed files with 4 additions and 3 deletions

View File

@@ -1,9 +1,6 @@
package; package;
import openfl.display.Sprite; import openfl.display.Sprite;
import openfl.Lib;
import sys.FileSystem;
import Assets;
class Main extends Sprite { class Main extends Sprite {
public function new() { public function new() {

View File

@@ -267,6 +267,10 @@ class AssetMacro {
} }
var source = limeRoot + "ndll/" + platformDirectory + "/lime.ndll"; var source = limeRoot + "ndll/" + platformDirectory + "/lime.ndll";
if (!FileSystem.exists(source) && platformDirectory.endsWith("64")) {
platformDirectory = platformDirectory.substr(0, platformDirectory.length - 2);
source = limeRoot + "ndll/" + platformDirectory + "/lime.ndll";
}
if (!FileSystem.exists(source)) { if (!FileSystem.exists(source)) {
Context.warning("Lime native library not found: " + source, Context.currentPos()); Context.warning("Lime native library not found: " + source, Context.currentPos());
return; return;