Remove dumb artifical restriction.
Yes I know this is for safety but it makes file io really really annoying
This commit is contained in:
parent
c5e9e1a196
commit
914a4fa9e1
1 changed files with 0 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue