Remove unused variables, ifdef what looks debug code.
This commit is contained in:
parent
c0ebfc43f0
commit
aa32f62368
|
@ -235,8 +235,6 @@ void GFX_FIFOsend(u8 cmd, u32 param)
|
||||||
// this function used ONLY in new gxFIFO
|
// this function used ONLY in new gxFIFO
|
||||||
BOOL GFX_PIPErecv(u8 *cmd, u32 *param)
|
BOOL GFX_PIPErecv(u8 *cmd, u32 *param)
|
||||||
{
|
{
|
||||||
u8 tmp_cmd = 0;
|
|
||||||
u32 tmp_param = 0;
|
|
||||||
u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600);
|
u32 gxstat = T1ReadLong(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x600);
|
||||||
gxstat &= 0xF7FFFFFF; // clear busy flag
|
gxstat &= 0xF7FFFFFF; // clear busy flag
|
||||||
|
|
||||||
|
|
|
@ -1552,8 +1552,10 @@ static INLINE u16 read_timer(int proc, int timerIndex)
|
||||||
|
|
||||||
static INLINE void write_timer(int proc, int timerIndex, u16 val)
|
static INLINE void write_timer(int proc, int timerIndex, u16 val)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
int mask = ((val&0x80)>>7) << timerIndex;
|
int mask = ((val&0x80)>>7) << timerIndex;
|
||||||
//MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask;
|
MMU.CheckTimers = (MMU.CheckTimers & (~mask)) | mask;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(val&0x80)
|
if(val&0x80)
|
||||||
MMU.timer[proc][timerIndex] = MMU.timerReload[proc][timerIndex];
|
MMU.timer[proc][timerIndex] = MMU.timerReload[proc][timerIndex];
|
||||||
|
|
|
@ -499,7 +499,6 @@ static bool FCEUSS_SaveSRAM(std::ostream* outstream, std:: string fname)
|
||||||
//TODO - support dumping directly without compressing to save a buffer copy
|
//TODO - support dumping directly without compressing to save a buffer copy
|
||||||
|
|
||||||
memorystream ms;
|
memorystream ms;
|
||||||
std::ostream* os = (std::ostream*)&ms;
|
|
||||||
|
|
||||||
//size it
|
//size it
|
||||||
FILE * fp = fopen( fname.c_str(), "r" );
|
FILE * fp = fopen( fname.c_str(), "r" );
|
||||||
|
|
Loading…
Reference in New Issue