summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-09-22 13:25:54 -0400
committerLioncash <mathew1800@gmail.com>2015-09-22 13:50:35 -0400
commit4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (patch)
tree76f25689c3087da3ba0c663e307b40ada1bc551d /Source/Core/DolphinQt/GameList/GameFile.cpp
parent5d774df1e8e0622a68f53c741db07922baadeae3 (diff)
DiscIO: Do swapping in GetTitleID implementations
Gets rid of external swaps at every usage.
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.cpp10
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);