mirror of
https://github.com/sanni/cartreader.git
synced 2025-02-09 09:53:33 +01:00
Corrected syntax
This commit is contained in:
parent
8077e1e21b
commit
592fa7b83e
@ -725,20 +725,24 @@ void outputNES() {
|
|||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
uint32_t prg_crc32 = 0;
|
uint32_t prg_crc32 = 0;
|
||||||
|
uint32_t prg_size_bytes = 0;
|
||||||
File prg_crc32_file;
|
File prg_crc32_file;
|
||||||
if(prg_crc32_file.open(filePRG, O_READ))
|
if(prg_crc32_file.open(filePRG, O_READ))
|
||||||
{
|
{
|
||||||
prg_crc32 = crc32(prg_crc32_file, 1024 * prg);
|
prg_size_bytes = 1024 * prg;
|
||||||
|
prg_crc32 = crc32(prg_crc32_file, prg_size_bytes);
|
||||||
prg_crc32_file.close();
|
prg_crc32_file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t chr_crc32 = 0;
|
uint32_t chr_crc32 = 0;
|
||||||
|
uint32_t chr_size_bytes = 0;
|
||||||
if(chr > 0)
|
if(chr > 0)
|
||||||
{
|
{
|
||||||
File chr_crc32_file;
|
File chr_crc32_file;
|
||||||
if(prg_crc32_file.open(fileCHR, O_READ))
|
if(prg_crc32_file.open(fileCHR, O_READ))
|
||||||
{
|
{
|
||||||
chr_crc32 = crc32(chr_crc32_file, 1024 * chr);
|
chr_size_bytes = 1024 * chr;
|
||||||
|
chr_crc32 = crc32(chr_crc32_file, chr_size_bytes);
|
||||||
chr_crc32_file.close();
|
chr_crc32_file.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user