From 425780205ac2cbe5fec557dd3449816f39ac44e3 Mon Sep 17 00:00:00 2001 From: paulb-nl Date: Thu, 3 Oct 2024 08:34:28 +0200 Subject: [PATCH] Minor: N64 fix include path. SNES load rom with index 0 only (#921) --- support/n64/n64.cpp | 2 +- user_io.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/support/n64/n64.cpp b/support/n64/n64.cpp index 2f62122..a403f6c 100644 --- a/support/n64/n64.cpp +++ b/support/n64/n64.cpp @@ -7,11 +7,11 @@ #include "../../hardware.h" #include "../../menu.h" #include "../../shmem.h" +#include "../../lib/md5/md5.h" #include "miniz.h" #include "n64.h" #include "n64_cpak_header.h" -#include "lib/md5/md5.h" #pragma push_macro("NONE") #pragma push_macro("BIG_ENDIAN") diff --git a/user_io.cpp b/user_io.cpp index 37ce739..62476fb 100644 --- a/user_io.cpp +++ b/user_io.cpp @@ -2601,7 +2601,7 @@ int user_io_file_tx(const char* name, unsigned char index, char opensave, char m FileSeek(&f, 256, SEEK_SET); bytes2send = 64 * 1024; } - else { + else if ((index & 0x3F) == 0) { printf("Load SNES ROM.\n"); uint8_t* buf = snes_get_header(&f); hexdump(buf, 16, 0);