skullernet / openffa

Free-for-all deathmatch mod for Quake 2
GNU General Public License v2.0
22 stars 11 forks source link

Make the highscores folder configurable via a latched cvar. #9

Closed joe0x04 closed 3 years ago

joe0x04 commented 3 years ago

The highscore mechanism doesn't allow for multiple ports running from the same gamedir, they'll share a common highscores folder since it's hard coded. This allows for the folder to be set in a server config so each port can have its own.

skullernet commented 3 years ago

Path needs to be sanitized with G_CheckFilenameVariable to prevent rcon user from escaping Q2 directory. And it's probably better to name the cvar g_highscore_dir, since it's just a directory name, not the full path.

skullernet commented 3 years ago

Implemented differently.