call DIVerify when a wii game is launched directly by dolphin (adds tmd+uid)
after this revision, wii save manager (< 3.0) should show any saves on the emulated nand fixes an old issue with GetTitleID fixes issue 1716. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6190 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
1 parent
e0383634d3
commit
d422039f0a
6 files changed
+34
-4
No files matched your search
@@ -31,6 +31,7 @@
|
||||
#include "../HW/DVDInterface.h"
|
||||
#include "../HW/VideoInterface.h"
|
||||
#include "../HW/CPU.h"
|
||||
#include "../IPC_HLE/WII_IPC_HLE.h"
|
||||
|
||||
#include "../Debugger/Debugger_SymbolMap.h" // Debugger
|
||||
|
||||
@@ -191,6 +192,16 @@ bool CBoot::BootUp()
|
||||
|
||||
DVDInterface::SetDiscInside(VolumeHandler::IsValid());
|
||||
|
||||
u32 _TMDsz = 0x208;
|
||||
u8* _pTMD = new u8[_TMDsz];
|
||||
pVolume->GetTMD(_pTMD, &_TMDsz);
|
||||
if (_TMDsz)
|
||||
{
|
||||
WII_IPC_HLE_Interface::ES_DIVerify(_pTMD, _TMDsz);
|
||||
}
|
||||
delete []_pTMD;
|
||||
|
||||
|
||||
_StartupPara.bWii = VolumeHandler::IsWii();
|
||||
|
||||
// HLE BS2 or not
|
||||
|
||||
@@ -123,7 +123,7 @@ bool CWII_IPC_HLE_Device_di::IOCtlV(u32 _CommandAddress)
|
||||
|
||||
INFO_LOG(WII_IPC_DVD, "DVDLowOpenPartition: TMDOffset 0x%016llx", TMDOffset);
|
||||
|
||||
u32 TMDsz = CommandBuffer.PayloadBuffer[0].m_Size;
|
||||
u32 TMDsz = 0x208; //CommandBuffer.PayloadBuffer[0].m_Size;
|
||||
u8 *pTMD = new u8[TMDsz];
|
||||
if (pTMD)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user