diff options
| author | Léo Lam <leolino.lam@gmail.com> | 2017-05-06 18:21:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-06 18:21:07 +0200 |
| commit | c36d24a851ea8dc00c55de081be6f1bfa2f802c0 (patch) | |
| tree | 7c267c89f987593d50941f3e740755622aa0b837 /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | 2261224980f597135b482c9551622e1d89ecf07e (diff) | |
| parent | 40653a66073a180fc4036aed0721cd3741911cfb (diff) | |
Merge pull request #5382 from JosJuice/title-id-to-path
Don't duplicate code for getting paths based on title IDs
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 23768143bd..9d6242688b 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -23,6 +23,7 @@ #include "Common/FileUtil.h" #include "Common/Hash.h" #include "Common/IniFile.h" +#include "Common/NandPaths.h" #include "Common/StringUtil.h" #include "Core/Boot/Boot.h" @@ -371,9 +372,7 @@ const std::string GameListItem::GetWiiFSPath() const u64 title_id = 0; iso->GetTitleID(&title_id); - const std::string path = - StringFromFormat("%s/title/%08x/%08x/data/", File::GetUserPath(D_WIIROOT_IDX).c_str(), - (u32)(title_id >> 32), (u32)title_id); + const std::string path = Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT); if (!File::Exists(path)) File::CreateFullPath(path); |
