mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +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
|
||||
|
||||
if (!include_extension)
|
||||
if (!include_extension && (dot = strrchr(src, '.')))
|
||||
{
|
||||
dot = src;
|
||||
while (*dot && *dot != '.')
|
||||
{
|
||||
dot++;
|
||||
}
|
||||
return FString(src, dot - src);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue