Commit graph

20 commits

Author SHA1 Message Date
GenericHeroGuy
c91eaa5e0b Make compatmode writable, fix compatmode in nested hooks 2026-01-01 21:15:39 +01:00
GenericHeroGuy
a9c66ec217 Set lua_compatmode for console commands and cvar functions
Thanks Indev for finding this oopsie and the patch for command code
2025-12-16 23:23:16 +01:00
NepDisk
6d6cb09280 Convert most strcmp/stricmp to fastcmp/fasticmp 2025-12-11 13:00:32 -05:00
Sky Dusk
ffde1365a5 Remove format whitelist for read only Lua IO and allow more formats. 2025-06-24 12:15:20 -04:00
NepDisk
760a8574c2 Toss some backcompat lua shit under lua_compatmode 2025-02-04 07:54:32 -05:00
NepDisk
5ed31109fe Use io local if theres no callback. 2024-12-31 11:18:28 -05:00
NepDisk
914a4fa9e1 Remove dumb artifical restriction.
Yes I know this is for safety but it makes file io really really annoying
2024-10-07 21:58:07 -04:00
Louis-Antoine
05ae84bd09 Fix Lua stacktrace not showing in various situations 2020-11-13 19:12:25 +01:00
Louis-Antoine
6e073efbb7 Fix I_Error when queuing multiple Lua files 2020-05-19 23:50:37 +02:00
Louis-Antoine
ccc51df93b Fix sending Lua files in text mode 2020-05-19 21:36:21 +02:00
Louis-Antoine
1b62785cfa Refactor Lua file transfer code 2020-05-19 15:16:51 +02:00
Louis-Antoine
af5500575b Fix warning and formatting 2020-03-02 13:33:12 +01:00
James R
26ff2e0355 Fix compiler warnings 2020-02-20 17:18:26 -08:00
Louis-Antoine
ce7aa23155 Remove all potentially dangerous functions
Basically any function that calls fopen() is gone,
except the ones created by me.

And no access to stdin/stdout/stderr
through io.read()/io.write().
Not really harmful but why would you want that in SRB2.
2020-01-25 01:37:50 +01:00
Louis-Antoine
ad1d8f96f3 Fix the compiler warning fix 2020-01-24 23:34:39 +01:00
Louis-Antoine
4cf1e19030 Fix two compiler warnings 2020-01-24 23:24:54 +01:00
Louis-Antoine
8e92f3829c Add .dat and .csv to whitelisted file extensions 2020-01-24 17:51:20 +01:00
Louis-Antoine
1b6d056b91 Rename "luafiles/shared/" to "luafiles/client/" 2020-01-24 17:11:00 +01:00
Louis-Antoine
7f48cc9ed5 Split open() into open() and openlocal()
open() for normal, consistency-friendly reading,
openlocal() for writing and local reading.
2020-01-24 02:47:51 +01:00
Louis-Antoine
6d42930c8e Update Lua I/O support to 2.2 2020-01-22 23:08:57 +01:00