StringUtil: Add PathToFileName function
This commit is contained in:
1 parent
c86832849a
commit
5f6598f9e9
4 files changed
+18
-14
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user