mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- pick the proper dot for cutting off the extension in ExtractFileBase.
This commit is contained in:
parent
6071cf66cc
commit
6e9c85791c
1 changed files with 1 additions and 6 deletions
|
@ -331,13 +331,8 @@ FString ExtractFileBase (const char *path, bool include_extension)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!include_extension)
|
if (!include_extension && (dot = strrchr(src, '.')))
|
||||||
{
|
{
|
||||||
dot = src;
|
|
||||||
while (*dot && *dot != '.')
|
|
||||||
{
|
|
||||||
dot++;
|
|
||||||
}
|
|
||||||
return FString(src, dot - src);
|
return FString(src, dot - src);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue