Remove unused variables/functions
This commit is contained in:
@@ -21,9 +21,6 @@
|
|||||||
|
|
||||||
#include "mapinc.h"
|
#include "mapinc.h"
|
||||||
|
|
||||||
static uint8 *CHRRAM;
|
|
||||||
static uint32 CHRRAMSIZE;
|
|
||||||
|
|
||||||
static uint16 cmdreg;
|
static uint16 cmdreg;
|
||||||
static uint8 unrom, reg, openbus;
|
static uint8 unrom, reg, openbus;
|
||||||
|
|
||||||
|
|||||||
@@ -44,11 +44,6 @@ static void M364Power(void) {
|
|||||||
SetWriteHandler(0x7000, 0x7FFF, M364Write);
|
SetWriteHandler(0x7000, 0x7FFF, M364Write);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void M364Reset(void) {
|
|
||||||
EXPREGS[0] = 0;
|
|
||||||
MMC3RegReset();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Mapper364_Init(CartInfo *info) {
|
void Mapper364_Init(CartInfo *info) {
|
||||||
GenMMC3_Init(info, 512, 512, 8, 0);
|
GenMMC3_Init(info, 512, 512, 8, 0);
|
||||||
pwrap = M364PW;
|
pwrap = M364PW;
|
||||||
|
|||||||
@@ -73,10 +73,6 @@ static void Sync(void) {
|
|||||||
setprg8r(0x10, 0x6000, 0);
|
setprg8r(0x10, 0x6000, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DECLFR(M375Read) {
|
|
||||||
return CartBR(A);
|
|
||||||
}
|
|
||||||
|
|
||||||
static DECLFW(M375Write) {
|
static DECLFW(M375Write) {
|
||||||
if (addrlatch & 0x800)
|
if (addrlatch & 0x800)
|
||||||
datalatch = V;
|
datalatch = V;
|
||||||
|
|||||||
@@ -48,13 +48,6 @@ static DECLFW(HP898FWrite) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static DECLFW(HP898FWriteEx) {
|
|
||||||
switch (A & 4) {
|
|
||||||
case 0: regs[0] = V; break; /* CHR */
|
|
||||||
case 4: regs[1] = (V & 0xC0) | ((V >> 2) & 6) | ((V & 0x20) ? 1 : 0); break; /* PRG */
|
|
||||||
}
|
|
||||||
Sync();
|
|
||||||
}
|
|
||||||
static void HP898FPower(void) {
|
static void HP898FPower(void) {
|
||||||
regs[0] = regs[1] = 0;
|
regs[0] = regs[1] = 0;
|
||||||
Sync();
|
Sync();
|
||||||
|
|||||||
@@ -689,8 +689,6 @@ void Mapper421_Init(CartInfo *info)
|
|||||||
static uint8 HSK007Reg[4];
|
static uint8 HSK007Reg[4];
|
||||||
void sync394 (void) /* Called when J.Y. ASIC is active */
|
void sync394 (void) /* Called when J.Y. ASIC is active */
|
||||||
{
|
{
|
||||||
int prgAND =HSK007Reg[3] &0x10? 0x1F: 0x0F;
|
|
||||||
int chrAND =HSK007Reg[3] &0x80? 0xFF: 0x7F;
|
|
||||||
int prgOR =HSK007Reg[3] <<1 &0x010 | HSK007Reg[1] <<5 &0x020;
|
int prgOR =HSK007Reg[3] <<1 &0x010 | HSK007Reg[1] <<5 &0x020;
|
||||||
int chrOR =HSK007Reg[3] <<1 &0x080 | HSK007Reg[1] <<8 &0x100;
|
int chrOR =HSK007Reg[3] <<1 &0x080 | HSK007Reg[1] <<8 &0x100;
|
||||||
syncPRG(0x1F, prgOR);
|
syncPRG(0x1F, prgOR);
|
||||||
|
|||||||
@@ -1321,7 +1321,6 @@ static bool update_option_visibility(void)
|
|||||||
{
|
{
|
||||||
struct retro_variable var = {0};
|
struct retro_variable var = {0};
|
||||||
bool updated = false;
|
bool updated = false;
|
||||||
size_t i, size;
|
|
||||||
|
|
||||||
/* If frontend supports core option categories,
|
/* If frontend supports core option categories,
|
||||||
* then fceumm_show_adv_system_options and
|
* then fceumm_show_adv_system_options and
|
||||||
@@ -1415,7 +1414,7 @@ static bool update_option_visibility(void)
|
|||||||
static void set_variables(void)
|
static void set_variables(void)
|
||||||
{
|
{
|
||||||
struct retro_core_option_display option_display;
|
struct retro_core_option_display option_display;
|
||||||
unsigned i = 0, index = 0;
|
unsigned index = 0;
|
||||||
|
|
||||||
option_display.visible = false;
|
option_display.visible = false;
|
||||||
|
|
||||||
@@ -2696,7 +2695,7 @@ static void retro_run_blit(uint8_t *gfx)
|
|||||||
void retro_run(void)
|
void retro_run(void)
|
||||||
{
|
{
|
||||||
uint8_t *gfx;
|
uint8_t *gfx;
|
||||||
int32_t i, ssize = 0;
|
int32_t ssize = 0;
|
||||||
bool updated = false;
|
bool updated = false;
|
||||||
|
|
||||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
||||||
|
|||||||
@@ -691,9 +691,7 @@ static void RDoSQLQ(void) {
|
|||||||
|
|
||||||
static void RDoTriangle(void) {
|
static void RDoTriangle(void) {
|
||||||
int32 V;
|
int32 V;
|
||||||
int32 tcout, cout;
|
int32 tcout = (tristep & 0xF);
|
||||||
|
|
||||||
tcout = (tristep & 0xF);
|
|
||||||
if (!(tristep & 0x10)) tcout ^= 0xF;
|
if (!(tristep & 0x10)) tcout ^= 0xF;
|
||||||
tcout = (tcout * 3) << 16; /* (tcout<<1); */
|
tcout = (tcout * 3) << 16; /* (tcout<<1); */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user