mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
filesystem: dir: check dir casesensitivity after dir entries list was properly initialized
This commit is contained in:
parent
42a3c7b059
commit
e5763e2e9a
@ -295,6 +295,13 @@ qboolean FS_FixFileCase( dir_t *dir, const char *path, char *dst, const size_t l
|
|||||||
char entryname[MAX_SYSPATH];
|
char entryname[MAX_SYSPATH];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if( dir->numentries == DIRENTRY_NOT_SCANNED )
|
||||||
|
{
|
||||||
|
// read directory first time
|
||||||
|
FS_PopulateDirEntries( dir, dst );
|
||||||
|
uptodate = true;
|
||||||
|
}
|
||||||
|
|
||||||
// this subdirectory is case insensitive, just slam everything that's left
|
// this subdirectory is case insensitive, just slam everything that's left
|
||||||
if( dir->numentries == DIRENTRY_CASEINSENSITIVE )
|
if( dir->numentries == DIRENTRY_CASEINSENSITIVE )
|
||||||
{
|
{
|
||||||
@ -303,13 +310,6 @@ qboolean FS_FixFileCase( dir_t *dir, const char *path, char *dst, const size_t l
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( dir->numentries == DIRENTRY_NOT_SCANNED )
|
|
||||||
{
|
|
||||||
// read directory first time
|
|
||||||
FS_PopulateDirEntries( dir, dst );
|
|
||||||
uptodate = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// get our entry name
|
// get our entry name
|
||||||
Q_strncpy( entryname, prev, next - prev + 1 );
|
Q_strncpy( entryname, prev, next - prev + 1 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user