Skip to content

Commit

Permalink
FULLPIPE: Implement MessageQueue::finish()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 6, 2013
1 parent 0bc0aa1 commit 1b057ba
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion engines/fullpipe/messages.cpp
Expand Up @@ -414,7 +414,25 @@ bool MessageQueue::checkGlobalExCommandList2() {
}

void MessageQueue::finish() {
warning("STUB: MessageQueue::finish()");
if (!_parId)
return;

MessageQueue *mq = g_fullpipe->_globalMessageQueueList->getMessageQueueById(_parId);

_parId = 0;

if (!mq)
return;

if (!_flag1) {
mq->update();
return;
}

mq->_counter--;

if (!mq->_counter && !mq->_exCommands.size())
mq->update();
}

void MessageQueue::replaceKeyCode(int key1, int key2) {
Expand Down

0 comments on commit 1b057ba

Please sign in to comment.