DiscIO: Do swapping in GetTitleID implementations

Gets rid of external swaps at every usage.
This commit is contained in:
Lioncash
2015-09-22 13:25:54 -04:00
parent 5d774df1e8
commit 4b9b82e000
10 changed files with 28 additions and 30 deletions

View File

@ -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);