Remove dumb artifical restriction.

Yes I know this is for safety but it makes file io really really annoying
This commit is contained in:
NepDisk 2024-10-07 21:58:07 -04:00
parent c5e9e1a196
commit 914a4fa9e1

View file

@ -240,11 +240,6 @@ static int io_openlocal (lua_State *L) {
realfilename = va("%s" PATHSEP "%s", luafiledir, filename);
if (client && strnicmp(filename, "client/", strlen("client/")))
I_Error("Access denied to %s\n"
"Clients can only access files stored in luafiles/client/\n",
filename);
// Prevent access if the file is being downloaded
for (filetransfer = luafiletransfers; filetransfer; filetransfer = filetransfer->next)
if (!stricmp(filetransfer->filename, filename))