mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
CGE: Fix ProgName method to handle extensions without a leading period
This commit is contained in:
parent
11c9e64885
commit
700dbe021e
@ -102,8 +102,12 @@ void _fqsort(void *base, uint16 nelem, uint16 width, int (*fcmp)(const void *, c
|
||||
const char *progName(const char *ext) {
|
||||
static char buf[MAXFILE];
|
||||
strcpy(buf, "CGE");
|
||||
if (ext)
|
||||
if (ext) {
|
||||
strcat(buf, ".");
|
||||
if (*ext == '.')
|
||||
++ext;
|
||||
strcat(buf, ext);
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user