mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 18:01:34 +00:00
- Automatically reset fs_game to "" if it was supplied by the user and is equal to com_basegame
- Fix problem where users could change values of CVAR_INIT variables after the call to Cvar_Get() via Com_StartupVariable() - Move sound shutdown after client shutdown so VMs don't hold invalid sound handles in memory
This commit is contained in:
parent
664f8e578d
commit
d57ba6a57b
5 changed files with 23 additions and 10 deletions
|
@ -3792,9 +3792,12 @@ void FS_InitFilesystem( void ) {
|
|||
// we have to specially handle this, because normal command
|
||||
// line variable sets don't happen until after the filesystem
|
||||
// has already been initialized
|
||||
Com_StartupVariable( "fs_basepath" );
|
||||
Com_StartupVariable( "fs_homepath" );
|
||||
Com_StartupVariable( "fs_game" );
|
||||
Com_StartupVariable("fs_basepath");
|
||||
Com_StartupVariable("fs_homepath");
|
||||
Com_StartupVariable("fs_game");
|
||||
|
||||
if(!FS_FilenameCompare(Cvar_VariableString("fs_game"), com_basegame->string))
|
||||
Cvar_Set("fs_game", "");
|
||||
|
||||
// try to start up normally
|
||||
FS_Startup(com_basegame->string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue