diff options
Diffstat (limited to 'src/d_iwad.c')
-rw-r--r-- | src/d_iwad.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/d_iwad.c b/src/d_iwad.c index 0d3e5e48..ae66db79 100644 --- a/src/d_iwad.c +++ b/src/d_iwad.c @@ -32,7 +32,6 @@ #include "deh_str.h" #include "doomkeys.h" #include "d_iwad.h" -#include "gusconf.h" #include "i_system.h" #include "m_argv.h" #include "m_config.h" @@ -336,12 +335,14 @@ static void CheckSteamEdition(void) static void CheckSteamGUSPatches(void) { + const char *current_path; char *install_path; char *patch_path; int len; // Already configured? Don't stomp on the user's choices. - if (gus_patch_path != NULL && strlen(gus_patch_path) > 0) + current_path = D_GetStrVariable("gus_patch_path"); + if (current_path != NULL && strlen(current_path) > 0) { return; } @@ -363,13 +364,10 @@ static void CheckSteamGUSPatches(void) { snprintf(patch_path, len, "%s\\%s", install_path, STEAM_BFG_GUS_PATCHES); - gus_patch_path = patch_path; - } - else - { - free(patch_path); + D_SetVariable("gus_patch_path", patch_path); } + free(patch_path); free(install_path); } |