summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorflacs <tilkax@gmail.com>2015-09-23 18:56:57 +0200
committerflacs <tilkax@gmail.com>2015-09-23 18:56:57 +0200
commitc1ee0e7829a4062b503eb36aa50d0fbeec9d5734 (patch)
tree9885ec1ff75da298a6a3a8a54776f0932cd516c1 /Source/Core/DolphinQt/GameList/GameFile.cpp
parentcf131b133ed81382d893a357e18ab07d4d8b4505 (diff)
parent4b9b82e00016cbb8aa3c8a45bd32aea460f28c07 (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.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);