mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Zelda HLE: Skip command words that are not commands.
Zelda Twilight Princess (GC) seems to push null words into the command buffer. The command handler in the UCode ignores initial command mails that do not have the MSB set.
This commit is contained in:
@ -173,13 +173,16 @@ void ZeldaUCode::RunPendingCommands()
|
||||
|
||||
while (m_pending_commands_count)
|
||||
{
|
||||
m_pending_commands_count--;
|
||||
|
||||
u32 cmd_mail = Read32();
|
||||
if (!(cmd_mail & 0x80000000))
|
||||
continue;
|
||||
|
||||
u32 command = (cmd_mail >> 24) & 0x7f;
|
||||
u32 sync = cmd_mail >> 16;
|
||||
u32 extra_data = cmd_mail & 0xFFFF;
|
||||
|
||||
m_pending_commands_count--;
|
||||
|
||||
switch (command)
|
||||
{
|
||||
case 0x00:
|
||||
|
Reference in New Issue
Block a user