瀏覽代碼

Lua : add Sys.programPath

Justin Donaldson 9 年之前
父節點
當前提交
8992d49448
共有 1 個文件被更改,包括 4 次插入0 次删除
  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];
 	}