Merge pull request #113 from retro-wertz/update

Cleanup
This commit is contained in:
Twinaphex
2017-05-08 04:18:33 +02:00
committed by GitHub
4 changed files with 5 additions and 4 deletions

View File

@@ -261,7 +261,7 @@ void FASTAPASS(2) setchr8r(int r, uint32 V) {
if (CHRram[r]) if (CHRram[r])
PPUCHRRAM |= (255); PPUCHRRAM |= (255);
else else
PPUCHRRAM &= ~(255); PPUCHRRAM &= 0;
} }
void FASTAPASS(2) setchr1(uint32 A, uint32 V) { void FASTAPASS(2) setchr1(uint32 A, uint32 V) {

View File

@@ -40,6 +40,7 @@ void FCEUD_GetPalette(uint8 i, uint8 *r, uint8 *g, uint8 *b);
/* Displays an error. Can block or not. */ /* Displays an error. Can block or not. */
void FCEUD_PrintError(char *s); void FCEUD_PrintError(char *s);
void FCEUD_Message(char *s); void FCEUD_Message(char *s);
void FCEUD_DispMessage(char *m);
#ifdef NETWORK #ifdef NETWORK
/* Network interface */ /* Network interface */

View File

@@ -90,7 +90,7 @@ static void iNESGI(int h) {
break; break;
case GI_CLOSE: case GI_CLOSE:
{ {
FCEU_SaveGameSave(&iNESCart); /* FCEU_SaveGameSave(&iNESCart); */
if (iNESCart.Close) if (iNESCart.Close)
iNESCart.Close(); iNESCart.Close();
if (ROM) { if (ROM) {
@@ -793,7 +793,7 @@ int iNESLoad(const char *name, FCEUFILE *fp) {
if (!iNES_Init(MapperNo)) if (!iNES_Init(MapperNo))
FCEU_PrintError("iNES mapper #%d is not supported at all.", MapperNo); FCEU_PrintError("iNES mapper #%d is not supported at all.", MapperNo);
FCEU_LoadGameSave(&iNESCart); /* FCEU_LoadGameSave(&iNESCart); */
GameInterface = iNESGI; GameInterface = iNESGI;
FCEU_printf("\n"); FCEU_printf("\n");

View File

@@ -952,7 +952,7 @@ int FlushEmulateSound(void) {
} }
inbuf = end; inbuf = end;
FCEU_WriteWaveData(WaveFinal, end); /* This function will just return /* FCEU_WriteWaveData(WaveFinal, end); This function will just return
if sound recording is off. */ if sound recording is off. */
return(end); return(end);
} }