Use FileName as Class Name Wren Script

This commit is contained in:
émeryc
2023-07-10 14:45:40 -04:00
parent 7599ed034b
commit cc03146cfc
5 changed files with 61 additions and 6 deletions

View File

@@ -210,4 +210,11 @@ namespace Nuake
return nullptr;
}
std::string FileSystem::GetFileNameFromPath(const std::string& path)
{
const auto split = String::Split(path, '\\');
return String::Split(split[split.size() - 1], '.')[0];
}
}