mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DirectoryBlob: Split out setting BI2 to new function
This commit is contained in:
parent
2ea0a1a086
commit
ab4762c4c2
2 changed files with 9 additions and 5 deletions
|
@ -156,11 +156,7 @@ DirectoryBlobReader::DirectoryBlobReader(const std::string& root_directory)
|
|||
: m_root_directory(root_directory)
|
||||
{
|
||||
SetDiscHeaderAndDiscType();
|
||||
|
||||
constexpr u64 BI2_ADDRESS = 0x440;
|
||||
constexpr u64 BI2_SIZE = 0x2000;
|
||||
AddFileToContents(&m_virtual_disc, m_root_directory + "sys/bi2.bin", BI2_ADDRESS, BI2_SIZE);
|
||||
|
||||
SetBI2();
|
||||
BuildFST(SetDOL(SetApploader()));
|
||||
|
||||
if (m_is_wii)
|
||||
|
@ -282,6 +278,13 @@ void DirectoryBlobReader::SetDiscHeaderAndDiscType()
|
|||
}
|
||||
}
|
||||
|
||||
void DirectoryBlobReader::SetBI2()
|
||||
{
|
||||
constexpr u64 BI2_ADDRESS = 0x440;
|
||||
constexpr u64 BI2_SIZE = 0x2000;
|
||||
AddFileToContents(&m_virtual_disc, m_root_directory + "sys/bi2.bin", BI2_ADDRESS, BI2_SIZE);
|
||||
}
|
||||
|
||||
void DirectoryBlobReader::SetPartitionTable()
|
||||
{
|
||||
constexpr u64 PARTITION_TABLE_ADDRESS = 0x40000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue