yquake2remaster/src/common
Yamagi Burmeister 7456daf65f Do not display baseq2 savegames in mods / addons
The savegame list is generated by calling FS_FOpenFile() for each
possible savegame name. When a file handle is returned the savegame
exists, otherwise the savegame slot is empty. But FS_FOpenFile()
searches in every directory known to the VFS. If a savegame file
isn't found in $moddir but in baseq2, the file in baseq2 is opened
and a baseq2 savegame is displayed in the mods / addons savegame menu.

The fix is compromise between a clean solution and invasiveness:

- Refactor FS_FOpenFile() to include FS_FOpenFileRead(). FS_FOpenFile()
  was used only to open read only files, limit its's possibilities to
  do exactly that.
- Introduce a new flag "gamedir_only" to FS_FOpenFile(). When true
  only the gamedir directories are searched and not other directories
  like baseq2.
- Change all callers to FS_FOpenFile()s new signature.
- Use the new gamedir_only flag to limit the searchpath for savegames
  to the gamedir.
2015-10-25 16:44:22 +01:00
..
header Do not display baseq2 savegames in mods / addons 2015-10-25 16:44:22 +01:00
shared Revert "Cleanup vector math" 2015-10-19 18:20:47 +02:00
unzip fixed build on pre ansi c89 compilers 2012-11-14 14:49:40 +06:00
argproc.c Move stuff from common/common/ to common/ 2012-06-07 13:54:08 +02:00
clientserver.c Lets not do the last two commits just before 5.11 2013-05-18 18:59:39 +02:00
cmdparser.c Don't allow binding the "console keys" (^, ~, `) or Escape 2015-10-19 18:20:47 +02:00
collision.c replace most strncpy calls (several of them wrong) by Q_strlcpy calls 2013-05-11 14:44:36 +02:00
crc.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
cvar.c Minor rewriting. 2013-03-17 21:32:50 +01:00
filesystem.c Do not display baseq2 savegames in mods / addons 2015-10-25 16:44:22 +01:00
glob.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
md4.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
misc.c Rename VERSION to YQ2VERSION to prevent collisions 2014-01-27 18:14:36 +01:00
movemsg.c Fix several potential security vulnerabilties 2015-08-24 17:58:19 +02:00
netchan.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
pmove.c Fix indention 2014-08-24 10:26:50 +02:00
szone.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
zone.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00