Add ability to use Reset (reset button interrupt, still figuring out the other reset modes)

Add support for button combos that are built-in to controllers:
y+x+start for three seconds updates the origin
b+x+start for three seconds resets
Changed CPeripheralInterface to a namespace and renamed to ProcessorInterface

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4366 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-10-06 15:49:20 +00:00
parent 19b8e6bc08
commit 4c22bea4d4
33 changed files with 342 additions and 295 deletions

View File

@ -18,7 +18,7 @@
#include "Debugger.h"
#include "RegisterView.h"
#include "PowerPC/PowerPC.h"
#include "HW/PeripheralInterface.h"
#include "HW/ProcessorInterface.h"
// F-zero 80005e60 wtf??
@ -39,8 +39,8 @@ static u32 GetSpecialRegValue(int reg) {
case 5: return PowerPC::ppcState.spr[SPR_SRR0];
case 6: return PowerPC::ppcState.spr[SPR_SRR1];
case 7: return PowerPC::ppcState.Exceptions;
case 8: return CPeripheralInterface::GetMask();
case 9: return CPeripheralInterface::GetCause();
case 8: return ProcessorInterface::GetMask();
case 9: return ProcessorInterface::GetCause();
default: return 0;
}
}