D_DoomExeName() returns without extension

This commit is contained in:
Fabian Greffrath 2022-09-05 12:59:13 +02:00
parent 4bfe2d0e24
commit 204dbb774f

View File

@ -681,7 +681,13 @@ const char *D_DoomExeName(void)
if (!name) // cache multiple requests
{
name = M_BaseName(myargv[0]);
char *ext;
name = M_StringCopy(M_BaseName(myargv[0]));
ext = strrchr(name, '.');
if (ext)
*ext = '\0';
}
return name;