mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 13:55:36 -04:00
D_DoomExeName() returns without extension
This commit is contained in:
parent
4bfe2d0e24
commit
204dbb774f
@ -681,7 +681,13 @@ const char *D_DoomExeName(void)
|
|||||||
|
|
||||||
if (!name) // cache multiple requests
|
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;
|
return name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user