Make a function static, add a missing prototype for another one and remove an unused variable.

This commit is contained in:
riccardom 2009-08-04 18:35:50 +00:00
parent 00b5148274
commit 8e75d3521a
2 changed files with 3 additions and 2 deletions

View File

@ -1615,7 +1615,6 @@ template<int procnum, int num> struct TSequenceItem_Timer : public TSequenceItem
FORCEINLINE void exec()
{
u64 timer = nds_timer;
u8* regs = procnum==0?MMU.ARM9_REG:MMU.ARM7_REG;
bool first = true, over;
//we'll need to check chained timers..
@ -1937,7 +1936,7 @@ static void execHardware_hstart_vblankStart()
execHardware_doAllDma(EDMAMode_VBlank);
}
void execHardware_hstart_vcount()
static void execHardware_hstart_vcount()
{
u16 vmatch = T1ReadWord(MMU.ARM9_REG, 4);
if(nds.VCount==((vmatch>>8)|((vmatch<<1)&(1<<8))))

View File

@ -333,6 +333,8 @@ void NDS_Sleep();
void NDS_SkipNextFrame();
#define NDS_SkipFrame(s) if(s) NDS_SkipNext2DFrame();
void execHardware_doAllDma(EDMAMode modeNum);
template<bool FORCE> void NDS_exec(s32 nb = 560190<<1);
extern int lagframecounter;