Browse Source

Lua : add Sys.programPath

Justin Donaldson 9 năm trước cách đây
mục cha
commit
8992d49448
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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];
 	}