From 914a4fa9e148b3c1ccfdba1a0c686c1d585a1d8f Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:58:07 -0400 Subject: [PATCH] Remove dumb artifical restriction. Yes I know this is for safety but it makes file io really really annoying --- src/blua/liolib.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/blua/liolib.c b/src/blua/liolib.c index 5eec97fb4..3b90eadb6 100644 --- a/src/blua/liolib.c +++ b/src/blua/liolib.c @@ -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))