mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
EcWii: Add function to get the backup key
This commit is contained in:
parent
5b09657a1f
commit
05016e8dca
2 changed files with 7 additions and 1 deletions
|
@ -181,6 +181,11 @@ const u8* EcWii::GetNGSig() const
|
||||||
return BootMiiKeysBin.ng_sig;
|
return BootMiiKeysBin.ng_sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const u8* EcWii::GetBackupKey() const
|
||||||
|
{
|
||||||
|
return BootMiiKeysBin.backup_key;
|
||||||
|
}
|
||||||
|
|
||||||
void EcWii::InitDefaults()
|
void EcWii::InitDefaults()
|
||||||
{
|
{
|
||||||
memset(&BootMiiKeysBin, 0, sizeof(BootMiiKeysBin));
|
memset(&BootMiiKeysBin, 0, sizeof(BootMiiKeysBin));
|
||||||
|
|
|
@ -42,6 +42,7 @@ public:
|
||||||
u32 GetNGKeyID() const;
|
u32 GetNGKeyID() const;
|
||||||
const u8* GetNGPriv() const;
|
const u8* GetNGPriv() const;
|
||||||
const u8* GetNGSig() const;
|
const u8* GetNGSig() const;
|
||||||
|
const u8* GetBackupKey() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitDefaults();
|
void InitDefaults();
|
||||||
|
@ -82,7 +83,7 @@ private:
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
u8 nand_key[0x10]; // 0x158
|
u8 nand_key[0x10]; // 0x158
|
||||||
u8 rng_key[0x10]; // 0x168
|
u8 backup_key[0x10]; // 0x168
|
||||||
u32 unk1; // 0x178
|
u32 unk1; // 0x178
|
||||||
u32 unk2; // 0x17C
|
u32 unk2; // 0x17C
|
||||||
u8 eeprom_pad[0x80]; // 0x180
|
u8 eeprom_pad[0x80]; // 0x180
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue