mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
Boot/BS2: Write empty play record
This commit is contained in:
@ -319,6 +319,15 @@ bool CBoot::SetupWiiMemory(u64 ios_title_id)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void WriteEmptyPlayRecord()
|
||||||
|
{
|
||||||
|
const std::string file_path =
|
||||||
|
Common::GetTitleDataPath(Titles::SYSTEM_MENU, Common::FROM_SESSION_ROOT) + "play_rec.dat";
|
||||||
|
File::IOFile playrec_file(file_path, "r+b");
|
||||||
|
std::vector<u8> empty_record(0x80);
|
||||||
|
playrec_file.WriteBytes(empty_record.data(), empty_record.size());
|
||||||
|
}
|
||||||
|
|
||||||
// __________________________________________________________________________________________________
|
// __________________________________________________________________________________________________
|
||||||
// Wii Bootstrap 2 HLE:
|
// Wii Bootstrap 2 HLE:
|
||||||
// copy the apploader to 0x81200000
|
// copy the apploader to 0x81200000
|
||||||
@ -335,6 +344,8 @@ bool CBoot::EmulatedBS2_Wii(const DiscIO::Volume& volume)
|
|||||||
if (!tmd.IsValid())
|
if (!tmd.IsValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
WriteEmptyPlayRecord();
|
||||||
|
|
||||||
if (!SetupWiiMemory(tmd.GetIOSId()))
|
if (!SetupWiiMemory(tmd.GetIOSId()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user