diff options
| author | flacs <tilkax@gmail.com> | 2015-09-23 18:56:57 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-23 18:56:57 +0200 |
| commit | c1ee0e7829a4062b503eb36aa50d0fbeec9d5734 (patch) | |
| tree | 9885ec1ff75da298a6a3a8a54776f0932cd516c1 /Source/Core/DolphinQt/GameList/GameFile.cpp | |
| parent | cf131b133ed81382d893a357e18ab07d4d8b4505 (diff) | |
| parent | 4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (diff) | |
Merge pull request #3078 from lioncash/titleid
DiscIO: Do swapping in GetTitleID implementations
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameFile.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index f10dd0f201..74b24590cb 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -377,13 +377,11 @@ const QString GameFile::GetWiiFSPath() const if (volume->GetVolumeType() != DiscIO::IVolume::GAMECUBE_DISC) { - std::string path; - u64 title; + u64 title_id; + volume->GetTitleID(&title_id); - volume->GetTitleID((u8*)&title); - title = Common::swap64(title); - - path = StringFromFormat("%s/title/%08x/%08x/data/", File::GetUserPath(D_WIIROOT_IDX).c_str(), (u32)(title >> 32), (u32)title); + std::string path = StringFromFormat("%s/title/%08x/%08x/data/", + File::GetUserPath(D_WIIROOT_IDX).c_str(), (u32)(title_id >> 32), (u32)title_id); if (!File::Exists(path)) File::CreateFullPath(path); |
