Use FileName as Class Name Wren Script
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user