mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Write configs before changing the mod.
Otherwise config changes will be lost if the mod is changed. Part of #630.
This commit is contained in:
parent
a66b858f9c
commit
e86a678a3b
1 changed files with 8 additions and 0 deletions
|
@ -1669,6 +1669,8 @@ void FS_BuildGenericSearchPath(void) {
|
|||
Sys_Mkdir(path);
|
||||
}
|
||||
|
||||
void CL_WriteConfiguration(void);
|
||||
|
||||
void
|
||||
FS_BuildGameSpecificSearchPath(char *dir)
|
||||
{
|
||||
|
@ -1680,6 +1682,12 @@ FS_BuildGameSpecificSearchPath(char *dir)
|
|||
fsRawPath_t *search;
|
||||
fsSearchPath_t *next;
|
||||
|
||||
#ifndef DEDICATED_ONLY
|
||||
// Write the config. Otherwise changes made by the
|
||||
// current mod are lost.
|
||||
CL_WriteConfiguration();
|
||||
#endif
|
||||
|
||||
// empty string means baseq2
|
||||
if(dir[0] == '\0')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue