DiskIO: Clean up GetTMD() API.
This commit is contained in:
1 parent
b1df4e5986
commit
4bb48d09dd
5 files changed
+20
-15
No files matched your search
@@ -225,14 +225,12 @@ bool CBoot::BootUp()
|
||||
|
||||
DVDInterface::SetDiscInside(VolumeHandler::IsValid());
|
||||
|
||||
u32 _TMDsz = 0x208;
|
||||
u8* _pTMD = new u8[_TMDsz];
|
||||
pVolume->GetTMD(_pTMD, &_TMDsz);
|
||||
if (_TMDsz)
|
||||
u32 tmd_size;
|
||||
std::unique_ptr<u8[]> tmd_buf = pVolume->GetTMD(&tmd_size);
|
||||
if (tmd_size)
|
||||
{
|
||||
WII_IPC_HLE_Interface::ES_DIVerify(_pTMD, _TMDsz);
|
||||
WII_IPC_HLE_Interface::ES_DIVerify(tmd_buf.get(), tmd_size);
|
||||
}
|
||||
delete []_pTMD;
|
||||
|
||||
|
||||
_StartupPara.bWii = VolumeHandler::IsWii();
|
||||
|
||||
Reference in new issue
Block a user