mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 21:21:08 +01:00
664cea45c7
Using Unix tools to operate on a tree containing filename with spaces in them is really annoying, so rename the handful of instances where there were spaces. Host.cpp has never been used. Games tend to lookup the following directories that we don't yet have anything to put in, so prepopulate them in Data/User/Wii: title/00010001 title/00010002 title/00010003 title/00010004 title/00010005 title/00010006 title/00010007 meta shared2/title Set eol-style native on a number of text files which didn't already have it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5572 8ced0084-cf51-0410-be5f-012b33b47a6e
46 lines
730 B
Plaintext
46 lines
730 B
Plaintext
CPU:
|
|
---------------------------------------------------------------------------------------
|
|
|
|
void DSPSendCommands2(_pBuffer, _NumberOfMessages, _StartWork)
|
|
{
|
|
|
|
while (!DSP_Running_Check());
|
|
|
|
OldInterrupts = OSDisableInterrupts();
|
|
|
|
if (DSPCheckMailToDSP() != 0)
|
|
{
|
|
OSRestoreInterrupts();
|
|
return -1;
|
|
}
|
|
|
|
DSPSendMailToDSP(_NumberOfMessages)
|
|
|
|
DSPAssertInt()
|
|
|
|
while (DSPCheckMailToDSP() != 0) {}
|
|
|
|
if (_NumberOfMessages == 0)
|
|
_NumberOfMessages = 1
|
|
|
|
|
|
if (_StartWork != 0)
|
|
{
|
|
r28 = DSPStartWork(*_pBuffer, _StartWork)
|
|
}
|
|
_StartWork = 0
|
|
|
|
|
|
while(Count != _NumberOfMessages)
|
|
{
|
|
DSPSendMailToDSP(Buffer[Count])
|
|
while (DSPCheckMailToDSP() != 0) {}
|
|
Count++
|
|
}
|
|
|
|
OSRestoreInterrupts(OldInterrupts)
|
|
|
|
return r28;
|
|
}
|
|
|