Explorar o código

Lua : add Sys.programPath

Justin Donaldson %!s(int64=9) %!d(string=hai) anos
pai
achega
8992d49448
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      std/lua/_std/Sys.hx

+ 4 - 0
std/lua/_std/Sys.hx

@@ -75,6 +75,10 @@ class Sys {
 	}
 
 	public inline static function executablePath() : String {
+		return programPath();
+	}
+
+	public inline static function programPath() : String {
 		return Lua.arg[0];
 	}