mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Some changes to the UCode abstract factory in HLE DSP. Added Pikmin Wii to the CRC list as well.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2070 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
eb91942fd6
commit
ae2fa6e35c
@ -335,6 +335,7 @@ THREAD_RETURN EmuThread(void *pArg)
|
||||
dspInit.pGenerateDSPInterrupt = Callback_DSPInterrupt;
|
||||
dspInit.pGetAudioStreaming = AudioInterface::Callback_GetStreaming;
|
||||
dspInit.pEmulatorState = (int *)&PowerPC::state;
|
||||
dspInit.bWii = _CoreParameter.bWii;
|
||||
Plugins.GetDSP()->Initialize((void *)&dspInit);
|
||||
|
||||
// Load and Init PadPlugin
|
||||
|
@ -29,6 +29,7 @@ typedef struct
|
||||
TGenerateDSPInt pGenerateDSPInterrupt;
|
||||
TAudioGetStreaming pGetAudioStreaming;
|
||||
int *pEmulatorState;
|
||||
bool bWii;
|
||||
} DSPInitialize;
|
||||
|
||||
|
||||
|
@ -76,11 +76,14 @@ IUCode* UCodeFactory(u32 _CRC, CMailHandler& _rMailHandler)
|
||||
case 0x347112ba: // raving rabbits
|
||||
case 0xfa450138: // wii sports - PAL
|
||||
case 0xadbc06bd: // Elebits
|
||||
case 0xb7eb9a9c: // Wii Pikmin - JAP
|
||||
printf("Wii - AXWii chosen");
|
||||
return new CUCode_AXWii(_rMailHandler, _CRC);
|
||||
|
||||
default:
|
||||
PanicAlert("Unknown ucode (CRC = %08x) - forcing AX", _CRC);
|
||||
PanicAlert("Unknown ucode (CRC = %08x) - forcing AX/AXWii", _CRC);
|
||||
if(g_dspInitialize.bWii)
|
||||
return new CUCode_AXWii(_rMailHandler, _CRC);
|
||||
return new CUCode_AX(_rMailHandler);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user