Rename "luafiles/shared/" to "luafiles/client/"

This commit is contained in:
Louis-Antoine 2020-01-24 17:11:00 +01:00
parent 3b22a84296
commit e0f0984fcc
2 changed files with 3 additions and 3 deletions

View file

@ -243,9 +243,9 @@ static int io_openlocal (lua_State *L) {
char *realfilename = va("%s" PATHSEP "%s", luafiledir, filename);
if (client && strnicmp(filename, "shared/", strlen("shared/")))
if (client && strnicmp(filename, "client/", strlen("client/")))
I_Error("Access denied to %s\n"
"Clients can only access files stored in luafiles/shared/\n",
"Clients can only access files stored in luafiles/client/\n",
filename);
// Prevent access if the file is being downloaded

View file

@ -489,7 +489,7 @@ void AddLuaFileTransfer(const char *filename, const char *mode)
filetransfer->realfilename = strdup(va("%s" PATHSEP "%s",
luafiledir, filename));
else
filetransfer->realfilename = strdup(va("%s" PATHSEP "shared" PATHSEP "$$$%d%d.tmp",
filetransfer->realfilename = strdup(va("%s" PATHSEP "client" PATHSEP "$$$%d%d.tmp",
luafiledir, rand(), rand()));
if (!filetransfer->realfilename)
I_Error("AddLuaFileTransfer: Out of memory\n");