Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
request_queue may not have anything in it on return from ExecuteCommand
i.e. when calling ES_Launch and everything is reset.

Don't call Update after queuing a request.
  • Loading branch information
Parlane committed Apr 25, 2013
1 parent a03c35e commit a2b543d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Source/Core/Core/Src/HW/WII_IPC.cpp
Expand Up @@ -212,8 +212,11 @@ void Write32(const u32 _Value, const u32 _Address)
_dbg_assert_msg_(WII_IPC, 0, "w32 %08x @ %08x", _Value, _Address);
break;
}

//WII_IPC_HLE_Interface::Update();

if((_Address & 0xFFFF) != IPC_PPCCTRL)
{
WII_IPC_HLE_Interface::Update();
}
CoreTiming::ScheduleEvent_Threadsafe(0, updateInterrupts, 0);
}

Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp
Expand Up @@ -566,7 +566,8 @@ void Update()
INFO_LOG(WII_IPC_HLE, "||-- Acknowledge IPC Request @ 0x%08x", request_queue.front());

ExecuteCommand(request_queue.front());
request_queue.pop_front();
if(request_queue.size())
request_queue.pop_front();

#if MAX_LOGLEVEL >= DEBUG_LEVEL
Dolphin_Debugger::PrintCallstack(LogTypes::WII_IPC_HLE, LogTypes::LDEBUG);
Expand Down

0 comments on commit a2b543d

Please sign in to comment.