Lactozilla
c9318599c7
Skip unchanged value validation in CV_SetCVar if there is a can_change callback
2024-11-30 10:25:30 -03:00
Lactozilla
e7b4beba20
Update dates in copyright notices of all files modified in 2024
2024-09-21 21:35:01 -03:00
Hanicef
7061c30744
Pass save_t to NetVar save/load function
2024-08-25 12:24:03 +02:00
Hanicef
1718361123
Fix segfault when setting forceskin to None
2024-06-07 12:40:23 +02:00
Refrag
68264e7288
Fix buffer overflow when setting a NETVAR string CVar
...
There was a possible buffer overflow if you tried setting a console var
that had the CV_NETVAR and that was of the string type.
The overflow would happen if you were trying to set the console variable
while in a multiplayer / netgame state.
This commit just increases the size of buf to account for everything
that needs to be written to it.
2024-05-20 10:55:10 +02:00
Alam Ed Arias
703ee972e6
Clean up stringop-truncation warnings
2024-02-20 16:30:15 -05:00
Logan Aerl Arias
3176abe2e4
Merge branch 'cv-can-change' into 'next'
...
Add can_change for console variables
See merge request STJr/SRB2!2196
2024-01-17 03:39:39 +00:00
Logan Aerl Arias
b700c3a8bf
Merge branch 'next' into cv-can-change
2023-12-31 12:06:27 -05:00
Lactozilla
1122373304
Merge branch 'next' into raise-skin-limit
2023-11-30 18:58:24 -03:00
Lactozilla
a3e6b5e0fb
Merge remote-tracking branch 'stjr/next' into raise-skin-limit
2023-11-23 13:48:18 -03:00
Gustaf Alhäll
fa050cdebf
Redesign search mechanism
2023-11-18 20:44:26 +01:00
Gustaf Alhäll
13aed6ad25
Add apropos console command
2023-11-18 14:44:59 +01:00
Lactozilla
075dab924c
Handle edge case where the callback returns false while registering a variable
2023-11-01 16:16:59 -03:00
Lactozilla
01922d94f1
Add can_change for console variables
2023-11-01 15:50:59 -03:00
Alam Ed Arias
49d9619192
Merge branch 'master' into raise-skin-limit
2023-10-28 18:09:42 -04:00
LJ Sonic
0ade3ae0bc
Move tic and net command handling to new files
2023-07-27 15:38:45 +02:00
LJ Sonic
0b17e3c418
Move netcode files to a new folder
2023-07-27 15:38:42 +02:00
SteelT
a90151570f
Replace the alias if an alias already exists
...
Reduces wasting memory by having multiple aliases with the same name
2023-07-16 15:44:48 -04:00
SteelT
c55b2f2943
Print list of existing alias commands
2023-07-16 15:34:30 -04:00
SteelT
464110ed81
Add CV_TrueFalse as possible value types for console variables
...
This also adds support for using true/false as value aliases for On/Off, Yes/No or 1/0
2023-07-13 01:02:15 -04:00
spherallic
9499cb5409
Merge branch 'next' into public_next
2023-04-12 19:51:17 +02:00
sphere
2df3fb53da
Merge branch 'strong-lua-command-restrictions' into 'next'
...
Fix up Lua command/cvar safety
See merge request STJr/SRB2!1943
2023-04-12 17:50:01 +00:00
spherallic
9d6456c326
Merge branch 'next' into public_next
2023-04-02 19:33:16 +02:00
spherallic
1470d099e3
Update copyright year & credits
2023-03-31 14:53:31 +02:00
James R
07e4497320
Add COM_LUA to a bunch of commands
...
These commands be run from Lua:
- add
- addfile
- addfolder
- archivetest
- ban
- banip
- causecfail
- cecho
- cechoduration
- cechoflags
- changeteam
- changeteam2
- charability
- charspeed
- cheats
- clearbans
- clearscores
- connect
- countmobjs
- csay
- demote
- devmode
- displayplayer
- downloads
- drop
- droprate
- dumplua
- echo
- exitgame
- exitlevel
- gametype
- getallemeralds
- getplayernum
- god
- gravflip
- help
- hurtme
- isgamemodified
- jumptoaxis
- kick
- listwad
- login
- manual
- map
- mapmd5
- masterserver_update
- memdump
- memfree
- mod_details
- motd
- noclip
- nodes
- notarget
- numnodes
- numthinkers
- objectplace
- password
- pause
- ping
- playintro
- promote
- quit
- reloadbans
- resendgamestate
- resetcamera
- resetemeralds
- restartaudio
- retry
- rteleport
- runsoc
- savecheckpoint
- say
- sayteam
- sayto
- scale
- screenshot
- serverchangeteam
- setcontinues
- setlives
- setrings
- showbanlist
- showmap
- showscores
- showtime
- skynum
- startmovie
- stopdemo
- stopmovie
- suicide
- teleport
- toggle
- togglemodified
- toggletwod
- tunes
- version
- vid_info
- vid_modelist
- vid_nummodes
- weather
2023-03-15 17:22:56 -07:00
James R
49f1462f75
Only let Lua run commands registered with COM_LUA
2023-03-15 16:40:21 -07:00
James R
8a6f2e568b
Add a flags parameter to COM_AddCommand
2023-03-15 16:40:21 -07:00
James R
0405df1a47
Merge COM_SAFE with other COM flags
...
Renames COM_SAFE to COM_LUA.
2023-03-15 16:40:21 -07:00
James R
15e3d0e667
Fix toggle command and add command being able to bypass Lua restriction
2023-03-15 16:40:21 -07:00
James R
5d08bfd706
Rename CV_NOLUA to CV_ALLOWLUA, opt IN to Lua mutability
2023-03-15 16:40:21 -07:00
James R
a39f69c9c7
Reset com_flags at end of COM_BufExecute
...
Fixes com_flags being discarded after the first command in
a chain (semicolon list).
2023-03-15 16:40:21 -07:00
James R
e48786961a
exec: pass on com_flags
2023-03-15 16:40:21 -07:00
spherallic
4a1e99729b
Merge branch 'next' into public_next
2023-01-31 15:47:11 +01:00
Eidolon
e5dea805fa
Revert "Merge branch 'gamepad-refactor' into next"
...
This reverts commit 696e2ab909
, reversing
changes made to d98d59494f
.
2023-01-26 19:26:28 -06:00
Eidolon
bbd4cff75c
Revert "Merge branch 'gamepadtweaks' into 'next'"
...
This reverts commit 96bfd8cea7
, reversing
changes made to 24f9ec4ec4
.
2023-01-26 19:24:21 -06:00
LJ Sonic
379cc4207a
Revert "Merge branch 'netcode-refactor' into merging"
...
This reverts merge request !1920
2023-01-15 17:57:23 +00:00
LJ Sonic
41fb0c8943
Merge branch 'netcode-refactor' into merging
2023-01-15 17:45:06 +01:00
LJ Sonic
7c2fe20cd5
Move tic and net command handling to new files
2023-01-05 22:51:17 +01:00
spherallic
ca8842fa45
Merge branch 'next' into gamepadtweaks
2023-01-04 09:01:55 +01:00
Arthur
636e6d8c14
MSVC project file works again! Supports Visual Studio 2022.
...
Also fixed issues with the d_netcmd.c file/folder adding logic.
2022-12-31 19:35:07 -05:00
LJ Sonic
717e0d5a17
Move netcode files to a new folder
2022-12-31 14:10:19 +01:00
spherallic
1964869c69
Remove redundant control axes & cleanup
2022-12-22 01:40:33 +01:00
Eidolon
4c72154d4f
Merge remote-tracking branch 'local-SRB2/next' into public_next
2022-12-08 21:26:28 -06:00
Eidolon
aac04b818c
Merge branch '22-safe-addfolder' into 'public_next'
...
Path security checks for addfile, addfolder and exec
See merge request STJr/SRB2Internal!633
2022-12-07 00:43:31 +00:00
Jaime Ita Passos
46f7fa406f
Refactor gamepad code
...
Implements the SDL Game Controller API, haptics, and axis bindings.
2022-11-14 00:37:08 -03:00
Eidolon
12c2ddb115
Merge branch 'uncappedrevengeance' into next
...
Uncapped
See merge request STJr/SRB2!1856
# Conflicts:
# src/dummy/i_system.c
# src/win32/win_sys.c
2022-11-08 21:13:50 -06:00
James R
76879299f9
Restrict exec path to srb2 directories
2022-10-14 22:10:24 -07:00
Sally Coolatta
6e5e74b25f
Allow FPS cap values
2022-04-26 20:56:32 -05:00
SteelT
61b0c24cad
Fix "unknown command" not being printed on dedicated
2022-03-22 13:09:29 -04:00
spherallic
14295ac7de
2022
2022-03-03 20:24:46 +01:00