mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 22:58:50 +00:00
Boot/BS2: Write empty play record
This commit is contained in:
parent
8489d9da90
commit
363bf27cce
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue