]> git.xonotic.org Git - xonotic/darkplaces.git/commit - fs.c
Misc gamedir-related fixes
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 30 Apr 2024 10:19:59 +0000 (20:19 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 2 May 2024 21:02:37 +0000 (07:02 +1000)
commit0f05f00f998ea0df5695fa4597f7bfa36c229298
treebfd9f6fb875bed70d47728155e84f7f1ba770f4a
parent205931f2f5b7333523ca4f6c3cae7974a8f516c8
Misc gamedir-related fixes

Fixes two cvars being writable that shouldn't be.

Fixes MVM getgamedirinfo() builtin returning stale data (wasn't updated
by fs_rescan).

Fixes `startdemos` not working when changing to a mod that uses it,
after previously having had a map loaded.

Fixes `menu_main` being unavailable to quake.rc when changing to a mod
that uses it instead of `startdemos`.

Fixes `menu_restart` not performing the full MR_Init() (updates video
modes etc).

Fixes a race where it was possible to segfault by handling keyboard
events meant for MENU QC after MR_Shutdown() but before MR_Init() (by
calling directly instead of adding `menu_restart` to the cbuf).

Fixes an inconsistent extern declaration found by ubsan.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cl_main.c
cmd.h
common.c
fs.c
host.c
menu.c