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/DiscIO/VolumeCommon.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/DiscIO/VolumeCommon.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeCommon.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeCommon.cpp b/Source/Core/DiscIO/VolumeCommon.cpp index f5ceac8b0f..345ead0193 100644 --- a/Source/Core/DiscIO/VolumeCommon.cpp +++ b/Source/Core/DiscIO/VolumeCommon.cpp @@ -29,12 +29,11 @@ std::vector<u32> IVolume::GetBanner(int* width, int* height) const *width = 0; *height = 0; - u64 TitleID = 0; - GetTitleID((u8*)&TitleID); - TitleID = Common::swap64(TitleID); + u64 title_id = 0; + GetTitleID(&title_id); std::string file_name = StringFromFormat("%s/title/%08x/%08x/data/banner.bin", - File::GetUserPath(D_WIIROOT_IDX).c_str(), (u32)(TitleID >> 32), (u32)TitleID); + File::GetUserPath(D_WIIROOT_IDX).c_str(), (u32)(title_id >> 32), (u32)title_id); if (!File::Exists(file_name)) return std::vector<u32>(); |
