diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-22 13:25:54 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-22 13:50:35 -0400 |
| commit | 4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (patch) | |
| tree | 76f25689c3087da3ba0c663e307b40ada1bc551d /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | 5d774df1e8e0622a68f53c741db07922baadeae3 (diff) | |
DiscIO: Do swapping in GetTitleID implementations
Gets rid of external swaps at every usage.
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 82cd73fba5..f7841742cc 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -340,13 +340,11 @@ const std::string GameListItem::GetWiiFSPath() const if (iso->GetVolumeType() != DiscIO::IVolume::GAMECUBE_DISC) { - u64 title = 0; - - iso->GetTitleID((u8*)&title); - title = Common::swap64(title); + 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>>32), (u32)title); + File::GetUserPath(D_WIIROOT_IDX).c_str(), (u32)(title_id >> 32), (u32)title_id); if (!File::Exists(path)) File::CreateFullPath(path); |
