mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 23:14:14 +01:00
Added additional check for header retrieval
This commit is contained in:
parent
77cbb25b67
commit
12b4f81c9f
@ -724,7 +724,7 @@ void CreateRAMFileInSD() {
|
|||||||
void outputNES() {
|
void outputNES() {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
|
||||||
uint32_t prg_crc32;
|
uint32_t prg_crc32 = 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))
|
||||||
{
|
{
|
||||||
@ -831,6 +831,11 @@ void CartFinish() {
|
|||||||
|
|
||||||
unsigned char* getNESHeaderForFileInfo(size_t prg_size, size_t chr_size, uint32_t prg_crc32, uint32_t chr_crc32)
|
unsigned char* getNESHeaderForFileInfo(size_t prg_size, size_t chr_size, uint32_t prg_crc32, uint32_t chr_crc32)
|
||||||
{
|
{
|
||||||
|
if(prg_size == 0)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
File nesDb;
|
File nesDb;
|
||||||
char* temp_line;
|
char* temp_line;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user