Compare commits

...

2 Commits

Author SHA1 Message Date
smesgr9000 2826ded431 remove duplicate code in printing CRC 2024-05-01 18:59:00 +02:00
smesgr9000 d233387acc fix issue #939. Remove duplicate write of laster buffer. Also add Berzerk Enhanced 2024-05-01 18:50:35 +02:00
3 changed files with 5 additions and 8 deletions

View File

@ -429,7 +429,6 @@ void readROM_2600() {
readSegment_2600(0x1200, 0x1E00);
// Split Read of Last 0x200 bytes
readDataArray_2600(0x1E00, 0x1F4);
myFile.write(sdBuffer, 500);
for (int z = 0; z < 12; z++) {
// Set Bank to ensure 0x1FFC-0x1FFF is correct
readData_2600(0x1FF4 + x);

View File

@ -431,7 +431,7 @@ uint32_t calculateCRC(FsFile& infile) {
}
// Calculate rom's CRC32 from SD
uint32_t calculateCRC(char* fileName, char* folder, int offset) {
uint32_t calculateCRC(char* fileName, char* folder, unsigned long offset) {
FsFile infile;
uint32_t result;
@ -458,13 +458,8 @@ uint32_t calculateCRC(char* fileName, char* folder, int offset) {
#if (defined(ENABLE_ODY2) || defined(ENABLE_ARC) || defined(ENABLE_FAIRCHILD) || defined(ENABLE_MSX) || defined(ENABLE_POKE) || defined(ENABLE_2600) || defined(ENABLE_5200) || defined(ENABLE_7800) || defined(ENABLE_C64) || defined(ENABLE_VECTREX) || defined(ENABLE_NES))
void printCRC(char* checkFile, uint32_t* crcCopy, unsigned long offset) {
uint32_t crc;
uint32_t crc = calculateCRC(checkFile, folder, offset);
char tempCRC[9];
FsFile crcFile = sd.open(checkFile);
crcFile.seek(offset);
crc = calculateCRC(crcFile);
crcFile.close();
if (crcCopy != NULL) {
*crcCopy = crc;

View File

@ -118,6 +118,9 @@ Bermuda Triangle
Berzerk
064
Berzerk Enhanced
244
Big Bird's Egg Catch
248