mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Improved conditions for case insensitive filesystem support.
This commit is contained in:
parent
afe24bd4f0
commit
b1785e1f97
1 changed files with 6 additions and 2 deletions
|
@ -510,7 +510,11 @@ char exttable[NUM_EXT_TABLE][5] = {
|
|||
|
||||
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)
|
||||
{
|
||||
char uprhaystack[128];
|
||||
|
@ -560,7 +564,7 @@ boolean preparefilemenu(boolean samedepth)
|
|||
if (menusearch[0])
|
||||
{
|
||||
strcpy(localmenusearch, menusearch+1);
|
||||
#ifdef _WIN32
|
||||
#ifdef CASEINSENSITIVE_FILESYSTEM
|
||||
strupr(localmenusearch);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue