StringUtil: Add PathToFileName function

This commit is contained in:
JosJuice
2020-03-16 21:03:34 +01:00
parent c86832849a
commit 5f6598f9e9
4 changed files with 18 additions and 14 deletions
+2 -4
View File
@@ -97,11 +97,9 @@ GameFile::GameFile() = default;
GameFile::GameFile(std::string path) : m_file_path(std::move(path))
{
{
std::string name, extension;
SplitPath(m_file_path, nullptr, &name, &extension);
m_file_name = name + extension;
m_file_name = PathToFileName(m_file_path);
{
std::unique_ptr<DiscIO::Volume> volume(DiscIO::CreateVolume(m_file_path));
if (volume != nullptr)
{