diff options
| author | Léo Lam <leo@leolam.fr> | 2020-03-16 22:21:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 22:21:15 +0100 |
| commit | 0461170363693efec7d6a8a34baaa5fb2deb8954 (patch) | |
| tree | 2f04fb6f85c99808356b6128dcfd0a36fef87c39 /Source/Core/UICommon/GameFile.cpp | |
| parent | d4085382dccac850b96a5d263939c89af85525d1 (diff) | |
| parent | 1b844067aa96f01ea630164f2328b0e16ca6b291 (diff) | |
Merge pull request #8672 from JosJuice/wii-setting-backup
Back up Wii setting.txt and SYSCONF while emulating
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) { |
