mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO: Do swapping in GetTitleID implementations
Gets rid of external swaps at every usage.
This commit is contained in:
@ -947,12 +947,11 @@ void CGameListCtrl::OnExportSave(wxCommandEvent& WXUNUSED (event))
|
||||
if (!iso)
|
||||
return;
|
||||
|
||||
u64 title;
|
||||
u64 title_id;
|
||||
std::unique_ptr<DiscIO::IVolume> volume(DiscIO::CreateVolumeFromFilename(iso->GetFileName()));
|
||||
if (volume && volume->GetTitleID((u8*)&title))
|
||||
if (volume && volume->GetTitleID(&title_id))
|
||||
{
|
||||
title = Common::swap64(title);
|
||||
CWiiSaveCrypted::ExportWiiSave(title);
|
||||
CWiiSaveCrypted::ExportWiiSave(title_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user