mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +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) {
|
const char *progName(const char *ext) {
|
||||||
static char buf[MAXFILE];
|
static char buf[MAXFILE];
|
||||||
strcpy(buf, "CGE");
|
strcpy(buf, "CGE");
|
||||||
if (ext)
|
if (ext) {
|
||||||
|
strcat(buf, ".");
|
||||||
|
if (*ext == '.')
|
||||||
|
++ext;
|
||||||
strcat(buf, ext);
|
strcat(buf, ext);
|
||||||
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user