diff options
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp index 8499d270f4..cc64d9d3e9 100644 --- a/Source/Core/UICommon/GameFile.cpp +++ b/Source/Core/UICommon/GameFile.cpp @@ -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) { |
