mirror of https://github.com/sanni/cartreader.git
Compare commits
2 Commits
254982cbe7
...
2826ded431
Author | SHA1 | Date |
---|---|---|
smesgr9000 | 2826ded431 | |
smesgr9000 | d233387acc |
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -118,6 +118,9 @@ Bermuda Triangle
|
|||
Berzerk
|
||||
064
|
||||
|
||||
Berzerk Enhanced
|
||||
244
|
||||
|
||||
Big Bird's Egg Catch
|
||||
248
|
||||
|
||||
|
|
Loading…
Reference in New Issue