QW-Group / ezquake-source

main ezQuake source code base
https://www.ezquake.com/
GNU General Public License v2.0
270 stars 123 forks source link

BUG: load game menu does not populate with saved games #874

Open ballotz opened 10 months ago

ballotz commented 10 months ago

replicated building from master branch fa5d11e14091a8fb97c46090f4e1d1030f049a3b

Windows 10, built with VS2019, platform toolset v142

play single player game save the game on first slot then go to load game the load game menu does not show up

after some debug it seems that that happens because of menu.c;988,989 FS_OpenVFS("spprogs.dat", ...) return false and the menu is not populated, commenting out those 2 lines the menu show up and the saved game loads fine. I don't know what spprogs.dat is.

ballotz commented 10 months ago

just saw it's a duplicate of #560 the only other place where the game looks for spprogs.dat seems to be in pr_edict.c: 1150, however there is the fallback of searching "progs.dat" wich is found instead. should the load menu do the same thing?

Shpoike commented 10 months ago

you'll 'always' have the progs.dat from id1/pak0.pak if the engine can use that nq progs well enough, with save/load commands working too, then there's not really much point in checking for it in the menu code.