diff --git a/src/fds.cpp b/src/fds.cpp index 2d9b0f45..792b855b 100644 --- a/src/fds.cpp +++ b/src/fds.cpp @@ -862,7 +862,7 @@ int FDSLoad(const char *name, FCEUFILE *fp) { if ((tp = FCEU_fopen(fn, 0, "rb", 0))) { FCEU_printf("Disk was written. Auxillary FDS file open \"%s\".\n",fn); FreeFDSMemory(); - if (!SubLoad(tp)) { + if (SubLoad(tp)) { FCEU_PrintError("Error reading auxillary FDS file."); if(FDSBIOS) free(FDSBIOS); diff --git a/src/ines.cpp b/src/ines.cpp index 7ac6f636..210e9f29 100644 --- a/src/ines.cpp +++ b/src/ines.cpp @@ -1022,7 +1022,6 @@ static int iNES_Init(int num) { while (tmp->init) { if (num == tmp->number) { - // is this code used by the UNIF loader in any way? UNIFchrrama = NULL; // need here for compatibility with UNIF mapper code if (!VROM_size) { if(!iNESCart.ines2) @@ -1045,8 +1044,6 @@ static int iNES_Init(int num) { } if (CHRRAMSize > 0) { - // again. seems like this code never executed for UNIF files - // so why we need to set UNIFchrrama here? if ((UNIFchrrama = VROM = (uint8*)FCEU_dmalloc(CHRRAMSize)) == NULL) return 2; FCEU_MemoryRand(VROM, CHRRAMSize); SetupCartCHRMapping(0, VROM, CHRRAMSize, 1);