From 8e75d3521acd83d0ad8305db7ded59ff469311f3 Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 4 Aug 2009 18:35:50 +0000 Subject: [PATCH] Make a function static, add a missing prototype for another one and remove an unused variable. --- desmume/src/NDSSystem.cpp | 3 +-- desmume/src/NDSSystem.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 6b9274f4f..a41aae11f 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1615,7 +1615,6 @@ template 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)))) diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index 8b4270ea9..87a470618 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -333,6 +333,8 @@ void NDS_Sleep(); void NDS_SkipNextFrame(); #define NDS_SkipFrame(s) if(s) NDS_SkipNext2DFrame(); +void execHardware_doAllDma(EDMAMode modeNum); + template void NDS_exec(s32 nb = 560190<<1); extern int lagframecounter;