mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 05:48:03 -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
|
||||
{
|
||||
name = M_BaseName(myargv[0]);
|
||||
char *ext;
|
||||
|
||||
name = M_StringCopy(M_BaseName(myargv[0]));
|
||||
|
||||
ext = strrchr(name, '.');
|
||||
if (ext)
|
||||
*ext = '\0';
|
||||
}
|
||||
|
||||
return name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user