From 8d2bea03e02a2c297b9b429fdde569e7c0c181fa Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 10 Jun 2019 00:21:41 +0300 Subject: [PATCH] filesystem: disable netpath code This code was used in ancient approach, where executables and game files may have different path. And this code was working only on Win32 with case-insensitive `getenv()` --- engine/common/filesystem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index 6fd9aea0..d64fc9b5 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -2452,6 +2452,7 @@ static searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedir return search; } +#if 0 // search for environment path while( ( pEnvPath = getenv( "Path" ) ) ) { @@ -2469,6 +2470,7 @@ static searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedir } pEnvPath += (end - pEnvPath) + 1; // move pointer } +#endif // 0 } if( index != NULL )