Skip to content

Commit

Permalink
QC_PathRequiresSandbox: Allow writing to scripts/
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy authored Nov 25, 2024
1 parent 593345a commit bd79ef8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/common/pr_bgcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2571,10 +2571,18 @@ static qboolean QC_PathRequiresSandbox(const char *name)
huds\*.cfg (shouldn't have any passwords. yay editing)
models\*.* (xonotic is evil)
sound\*.* (xonotic is evil)
*=*= NZ:P EDIT: We need write access to scripts\ directory. Sorry, spike! *=*=
*/
if ((!strchr(name, '/') || !strnicmp(name, "configs/", 8)) //
&& !stricmp(COM_GetFileExtension(name, NULL), ".cfg"))
return true;

// NZ:P START
if (!strnicmp(name, "scripts/", 8))
return true;
// NZ:P END

return false;
}

Expand Down

0 comments on commit bd79ef8

Please sign in to comment.