Linux build fix
This commit is contained in:
parent
ac18eb3c37
commit
04e1b32675
|
@ -800,6 +800,10 @@ BMAPPINGLocal bmap[] = {
|
||||||
|
|
||||||
int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
|
int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
|
||||||
int result;
|
int result;
|
||||||
|
struct md5_context md5;
|
||||||
|
uint64 partialmd5 = 0;
|
||||||
|
const char* mappername = "Not Listed";
|
||||||
|
|
||||||
if (FCEU_fread(&head, 1, 16, fp) != 16 || memcmp(&head, "NES\x1A", 4))
|
if (FCEU_fread(&head, 1, 16, fp) != 16 || memcmp(&head, "NES\x1A", 4))
|
||||||
return LOADER_INVALID_FORMAT;
|
return LOADER_INVALID_FORMAT;
|
||||||
|
|
||||||
|
@ -946,8 +950,6 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
|
||||||
if (VROM_size)
|
if (VROM_size)
|
||||||
FCEU_fread(VROM, 0x2000, VROM_size, fp);
|
FCEU_fread(VROM, 0x2000, VROM_size, fp);
|
||||||
|
|
||||||
struct md5_context md5;
|
|
||||||
uint64 partialmd5 = 0;
|
|
||||||
md5_starts(&md5);
|
md5_starts(&md5);
|
||||||
md5_update(&md5, ROM, ROM_size << 14);
|
md5_update(&md5, ROM, ROM_size << 14);
|
||||||
|
|
||||||
|
@ -975,8 +977,6 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
|
||||||
FCEU_printf("\n");
|
FCEU_printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* mappername = "Not Listed";
|
|
||||||
|
|
||||||
for (int mappertest = 0; mappertest < (sizeof bmap / sizeof bmap[0]) - 1; mappertest++) {
|
for (int mappertest = 0; mappertest < (sizeof bmap / sizeof bmap[0]) - 1; mappertest++) {
|
||||||
if (bmap[mappertest].number == MapperNo) {
|
if (bmap[mappertest].number == MapperNo) {
|
||||||
mappername = bmap[mappertest].name;
|
mappername = bmap[mappertest].name;
|
||||||
|
|
Loading…
Reference in New Issue