Ignore bogus maple dma xfer

Workaround for csmash game test menu crash
This commit is contained in:
Flyinghead 2018-11-19 16:15:05 +01:00
parent eef297706c
commit a1aea570c5
1 changed files with 6 additions and 0 deletions

View File

@ -149,6 +149,12 @@ void maple_DoDma()
u32 outlen=0;
u32* p_data =(u32*) GetMemPtr(addr + 8,(plen)*sizeof(u32));
if (p_data == NULL)
{
printf("MAPLE ERROR : INVALID SB_MDSTAR value 0x%X\n", addr);
SB_MDST=0;
return;
}
//Command code
u32 command=p_data[0] &0xFF;