AGS: Cleanup get_filename

This commit is contained in:
Thierry Crozat 2021-03-21 22:25:19 +00:00
parent 3b54d413d6
commit 2b69eafd9a

View File

@ -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