2
0
Эх сурвалжийг харах

Lua : add Sys.programPath

Justin Donaldson 9 жил өмнө
parent
commit
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];
 	}