Remove unused variables

This commit is contained in:
retro-wertz
2019-08-01 20:31:42 +08:00
parent 313f69daaf
commit d807bac15b
10 changed files with 9 additions and 28 deletions

View File

@@ -32,7 +32,7 @@
#include "mmc3.h"
static uint8 reset_flag = 0;
static uint8 chip, isK3088;
static uint8 isK3088;
static void BMC411120CCW(uint32 A, uint8 V) {
uint32 mask = isK3088 ? 0x07 : 0x03;

View File

@@ -135,7 +135,6 @@ static DECLFW(M69SWrite0) {
}
static DECLFW(M69SWrite1) {
int x;
GameExpSound.Fill = AYSound;
GameExpSound.HiFill = AYSoundHQ;
switch (sndcmd) {

View File

@@ -23,7 +23,6 @@
#include "mapinc.h"
static uint8 chip;
static uint16 cmdreg;
static uint8 reset;
static SFORMAT StateRegs[] =

View File

@@ -31,7 +31,7 @@
#include "mapinc.h"
static uint8 reg[8], creg[8], mirr, cmd, IRQa = 0, isirqused = 0;
static uint8 reg[8], creg[8], mirr, cmd, IRQa = 0;
static int32 IRQCount, IRQLatch;
static uint8 KS7032;
static uint8 *WRAM = NULL;

View File

@@ -37,7 +37,7 @@ static void Sync(void) {
if (mode & 0x02)
setprg16(0x8000, (regs[0] & 0x0F) | (regs[1] & 0x70));
else
setprg16(0x8000, regs[0] & 0x0F | 0x80);
setprg16(0x8000, (regs[0] & 0x0F) | 0x80);
setprg16(0xC000, regs[1]);
setmirror(((regs[0] >> 4) & 1) ^ 1);
}

View File

@@ -44,8 +44,6 @@ uint8 mmc3opts = 0;
uint8 IRQCount, IRQLatch, IRQa;
uint8 IRQReload;
static uint8 chip;
static SFORMAT MMC3_StateRegs[] =
{
{ DRegBuf, 8, "REGS" },
@@ -1198,7 +1196,6 @@ void Mapper198_Init(CartInfo *info) {
/* ---------------------------- Mapper 205 ------------------------------ */
/* UNIF boardname BMC-JC-016-2
https://wiki.nesdev.com/w/index.php/INES_Mapper_205 */
static uint8 block[] = {0, 0, 1, 2};
static void M205PW(uint32 A, uint8 V) {
uint8 bank = V & ((EXPREGS[0] & 0x02) ? 0x0F : 0x1F);

View File

@@ -27,8 +27,6 @@
#include "mapinc.h"
#include "mmc3.h"
static uint8 chip;
static void M313CW(uint32 A, uint8 V) {
setchr1(A, (EXPREGS[0] << 7) | (V & 0x7F));
}

View File

@@ -20,7 +20,6 @@
#include "mapinc.h"
static uint8 chip;
static uint8 bank, base, lock, mirr, mode;
static SFORMAT StateRegs[] =
{

View File

@@ -31,7 +31,6 @@ static uint8 prgreg[2], chrreg[8];
static uint16 chrhi[8];
static uint8 regcmd, irqcmd, mirr, big_bank;
static uint16 acount = 0;
static uint16 weirdo = 0;
static uint8 *WRAM = NULL;
static uint32 WRAMSIZE;
@@ -65,15 +64,8 @@ static void Sync(void) {
setchr8(0);
else {
uint8 i;
/* if (!weirdo) */
for (i = 0; i < 8; i++)
setchr1(i << 10, (chrhi[i] | chrreg[i]) >> is22);
/* else {
setchr1(0x0000, 0xFC);
setchr1(0x0400, 0xFD);
setchr1(0x0800, 0xFF);
weirdo--;
} */
for (i = 0; i < 8; i++)
setchr1(i << 10, (chrhi[i] | chrreg[i]) >> is22);
}
switch (mirr & 0x3) {
case 0: setmirror(MI_V); break;

View File

@@ -309,13 +309,10 @@ void FCEU_VSUniCheck(uint64 md5partial, int *MapperNo, uint8 *Mirroring) {
secptr = 0;
{
static int64 tko = 0x6e1ee06171d8ce3aULL, rbi = 0x6a02d345812938afULL;
if (vs->gameid & VS_TKOBOXING)
secptr = secdata[0];
if (md5partial == rbi)
secptr = secdata[1];
}
if (vs->gameid & VS_TKOBOXING)
secptr = secdata[0];
if (vs->gameid & VS_RBIBASEBALL)
secptr = secdata[1];
vsdip = 0x0;
if (vs->ioption & IOPTION_PREDIP) {