more logging, intendation fixes

This commit is contained in:
markwkidd 2018-01-27 13:28:14 -05:00 committed by GitHub
parent 4f96be6e12
commit cd5a8f971a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,14 @@ int LoadCart(char *path)
size++; size++;
} }
fclose(fp); fclose(fp);
if (feof(fp))
{
printf("[INFO] [FREEINTV] Successful cartridge load: EOF indicator set");
}
if (ferror(fp))
{
printf("[ERROR] [FREEINTV] Cartridge load error indicator set");
}
if(isROM()) // intellicart format if(isROM()) // intellicart format
{ {
printf("[INFO] [FREEINTV] Intellicart cartridge format detected\n"); printf("[INFO] [FREEINTV] Intellicart cartridge format detected\n");