Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
This commit is contained in:
commit
c5da23bb02
1 file changed
+6
-2
+6
-2
@@ -3955,7 +3955,7 @@ static void pathonly(char *s)
|
||||
*/
|
||||
static const char *searchWad(const char *searchDir)
|
||||
{
|
||||
static char tempsw[256] = "";
|
||||
static char tempsw[MAX_WADPATH] = "";
|
||||
filestatus_t fstemp;
|
||||
|
||||
strcpy(tempsw, WADKEYWORD1);
|
||||
@@ -4076,12 +4076,16 @@ static const char *locateWad(void)
|
||||
#endif
|
||||
#ifndef NOHOME
|
||||
// find in $HOME
|
||||
I_OutputMsg(",HOME");
|
||||
I_OutputMsg(",HOME/" DEFAULTDIR);
|
||||
if ((envstr = I_GetEnv("HOME")) != NULL)
|
||||
{
|
||||
char *tmp = malloc(strlen(envstr) + sizeof(DEFAULTDIR));
|
||||
strcpy(tmp, envstr);
|
||||
strcat(tmp, DEFAULTDIR);
|
||||
WadPath = searchWad(envstr);
|
||||
if (WadPath)
|
||||
return WadPath;
|
||||
free(tmp);
|
||||
}
|
||||
#endif
|
||||
#ifdef DEFAULTSEARCHPATH1
|
||||
|
||||
Reference in new issue
Block a user