mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
In the user map selector, sort file names case-insensitively on Unix'y systems.
This makes more sense because the game selector draws the names with uppercase letters and the hotkeys to jump to a map starting with a particualar letter aren't case sensitive, either. Mapster32's selector will still display maps starting with upper case first. git-svn-id: https://svn.eduke32.com/eduke32@2356 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b4f63547c4
commit
60020d2dd4
1 changed files with 5 additions and 1 deletions
|
@ -863,7 +863,11 @@ static int32_t klistaddentry(CACHE1D_FIND_REC **rec, const char *name, int32_t t
|
||||||
else if (source == CACHE1D_SOURCE_ZIP || attach->source == CACHE1D_SOURCE_ZIP)
|
else if (source == CACHE1D_SOURCE_ZIP || attach->source == CACHE1D_SOURCE_ZIP)
|
||||||
insensitive = 1;
|
insensitive = 1;
|
||||||
else
|
else
|
||||||
insensitive = 0;
|
{
|
||||||
|
extern int16_t editstatus; // XXX
|
||||||
|
insensitive = !editstatus;
|
||||||
|
}
|
||||||
|
// ^ in the game, don't show file list case-sensitive
|
||||||
#endif
|
#endif
|
||||||
if (insensitive) v = Bstrcasecmp(name, attach->name);
|
if (insensitive) v = Bstrcasecmp(name, attach->name);
|
||||||
else v = Bstrcmp(name, attach->name);
|
else v = Bstrcmp(name, attach->name);
|
||||||
|
|
Loading…
Reference in a new issue