mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
AGS: Cleanup get_filename
This commit is contained in:
parent
3b54d413d6
commit
2b69eafd9a
@ -89,7 +89,7 @@ inline String get_filename(const String &pathAndName) {
|
||||
size_t p = pathAndName.FindCharReverse('/');
|
||||
if (p != String::npos)
|
||||
return String(pathAndName.GetNullableCStr() + p + 1);
|
||||
return Common::FSNode(pathAndName).getName();
|
||||
return pathAndName;
|
||||
}
|
||||
|
||||
} // namespace Path
|
||||
|
Loading…
Reference in New Issue
Block a user