Merge pull request #1619 from player-03/programPath

Use `applicationDirectory` to locate assets on Mac.
This commit is contained in:
player-03
2023-01-17 12:17:29 -05:00
committed by GitHub

View File

@@ -59,10 +59,8 @@ import sys.FileSystem;
rootPath = "assets/";
#elseif android
rootPath = "";
#elseif console
#elseif (console || sys)
rootPath = lime.system.System.applicationDirectory;
#elseif sys
rootPath = Path.directory(Sys.programPath()) + "/";
#else
rootPath = "./";
#end