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/DiscIO/Volume.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/DiscIO/Volume.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Volume.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/Volume.cpp b/Source/Core/DiscIO/Volume.cpp index 640b709ffe..ade2bd1eab 100644 --- a/Source/Core/DiscIO/Volume.cpp +++ b/Source/Core/DiscIO/Volume.cpp @@ -13,6 +13,7 @@ #include "Common/ColorUtil.h" #include "Common/CommonTypes.h" #include "Common/FileUtil.h" +#include "Common/NandPaths.h" #include "Common/StringUtil.h" #include "Common/Swap.h" @@ -30,9 +31,8 @@ std::vector<u32> IVolume::GetWiiBanner(int* width, int* height, u64 title_id) *width = 0; *height = 0; - std::string file_name = StringFromFormat("%s/title/%08x/%08x/data/banner.bin", - File::GetUserPath(D_WIIROOT_IDX).c_str(), - (u32)(title_id >> 32), (u32)title_id); + const std::string file_name = + Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT) + "banner.bin"; if (!File::Exists(file_name)) return std::vector<u32>(); |
