mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 14:32:08 +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