mirror of
https://github.com/sanni/cartreader.git
synced 2025-02-20 06:52:43 +01:00
Corrected file reading calls
This commit is contained in:
parent
ed293c2628
commit
77cbb25b67
@ -726,7 +726,7 @@ void outputNES() {
|
|||||||
|
|
||||||
uint32_t prg_crc32;
|
uint32_t prg_crc32;
|
||||||
File prg_crc32_file;
|
File prg_crc32_file;
|
||||||
if(sd.open(filePRG, O_READ))
|
if(prg_crc32_file.open(filePRG, O_READ))
|
||||||
{
|
{
|
||||||
prg_crc32 = crc32(prg_crc32_file, 1024 * prg);
|
prg_crc32 = crc32(prg_crc32_file, 1024 * prg);
|
||||||
prg_crc32_file.close();
|
prg_crc32_file.close();
|
||||||
@ -736,7 +736,7 @@ void outputNES() {
|
|||||||
if(chr > 0)
|
if(chr > 0)
|
||||||
{
|
{
|
||||||
File chr_crc32_file;
|
File chr_crc32_file;
|
||||||
if(sd.open(fileCHR, O_READ))
|
if(prg_crc32_file.open(fileCHR, O_READ))
|
||||||
{
|
{
|
||||||
chr_crc32 = crc32(chr_crc32_file, 1024 * chr);
|
chr_crc32 = crc32(chr_crc32_file, 1024 * chr);
|
||||||
chr_crc32_file.close();
|
chr_crc32_file.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user