From daa61406013e18c0a0ec951971f47a1f3317165f Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 5 Jun 2026 22:57:16 +0100 Subject: [PATCH] Seperate DEVELOPRRWADDIR from RINGRACERSWADDIR for DEVELOP builds I would like to have both a development folder and release build folder on my computer, but the develop won't run in the debugger without the waddir variable set, and if it's set the release keeps sniffing my dev files and I_Erroring for bad file hashes on launch --- src/sdl/i_system.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 827f493b1..7c5aef985 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -2376,7 +2376,15 @@ static const char *locateWad(void) I_OutputMsg("RINGRACERSWADDIR"); // does RINGRACERSWADDIR exist? - if (((envstr = I_GetEnv("RINGRACERSWADDIR")) != NULL) && isWadPathOk(envstr)) + +#ifdef DEVELOP + if ((envstr = I_GetEnv("DEVELOPRRWADDIR")) == NULL) +#endif + { + envstr = I_GetEnv("RINGRACERSWADDIR"); + } + + if ((envstr != NULL) && isWadPathOk(envstr)) return envstr; #ifndef NOCWD