hedgewars/uScript.pas
branchphysfslayer
changeset 8025 07862ab415c8
parent 8012 2a61631a4505
child 8031 fc40b343c45c
--- a/hedgewars/uScript.pas	Wed Nov 14 00:41:29 2012 +0400
+++ b/hedgewars/uScript.pas	Wed Nov 14 22:45:36 2012 +0400
@@ -1592,7 +1592,7 @@
         lua_pushnil(L);
         end
     else
-        lua_pushstring(L, str2pchar(Pathz[ptData]));
+        lua_pushstring(L, str2pchar(cPathz[ptData]));
     lc_getdatapath:= 1
 end;
 
@@ -1604,7 +1604,7 @@
         lua_pushnil(L);
         end
     else
-        lua_pushstring(L, str2pchar(UserPathz[ptData]));
+        lua_pushstring(L, str2pchar(cPathz[ptData]));
     lc_getuserdatapath:= 1
 end;
 
@@ -1969,9 +1969,7 @@
 var ret : LongInt;
       s : shortstring;
 begin
-s:= UserPathz[ptData] + '/' + name;
-if not FileExists(s) then
-    s:= Pathz[ptData] + '/' + name;
+s:= cPathz[ptData] + '/' + name;
 if not FileExists(s) then
     exit;