Skip to content
Snippets Groups Projects
Commit b1785e1f authored by toaster's avatar toaster
Browse files

Improved conditions for case insensitive filesystem support.

parent afe24bd4
No related branches found
No related tags found
No related merge requests found
...@@ -510,7 +510,11 @@ char exttable[NUM_EXT_TABLE][5] = { ...@@ -510,7 +510,11 @@ char exttable[NUM_EXT_TABLE][5] = {
char filenamebuf[MAX_WADFILES][MAX_WADPATH]; char filenamebuf[MAX_WADFILES][MAX_WADPATH];
#ifdef _WIN32 #if defined(_WIN32) || defined(_WINDOWS)
#define CASEINSENSITIVE_FILESYSTEM
#endif
#ifdef CASEINSENSITIVE_FILESYSTEM
static char *strsystemstr(char *haystack, char *needle) static char *strsystemstr(char *haystack, char *needle)
{ {
char uprhaystack[128]; char uprhaystack[128];
...@@ -560,7 +564,7 @@ boolean preparefilemenu(boolean samedepth) ...@@ -560,7 +564,7 @@ boolean preparefilemenu(boolean samedepth)
if (menusearch[0]) if (menusearch[0])
{ {
strcpy(localmenusearch, menusearch+1); strcpy(localmenusearch, menusearch+1);
#ifdef _WIN32 #ifdef CASEINSENSITIVE_FILESYSTEM
strupr(localmenusearch); strupr(localmenusearch);
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment