diff --git a/system.c b/system.c index deb4344..9e5225e 100644 --- a/system.c +++ b/system.c @@ -293,6 +293,10 @@ uint32_t load_media(char * filename, system_media *dst, system_type *stype) } while (read > 0); dst->buffer = buf; ret = (uint32_t)readsize; + // Only this path still has the file open: load_smd_rom() above closes + // it itself, and closing it again below was a second close of the same + // handle for every .smd ROM. Upstream d22b34e78040. + romclose(f); } dst->dir = path_dirname(filename); if (!dst->dir) { @@ -301,7 +305,6 @@ uint32_t load_media(char * filename, system_media *dst, system_type *stype) dst->name = basename_no_extension(filename); dst->extension = ext; dst->size = ret; - romclose(f); if (!strcasecmp(dst->extension, "cue")) { if (parse_cue(dst)) { ret = dst->size; diff --git a/version.inc b/version.inc index ae5686b..63e4637 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -#define BLASTEM_VERSION "0.6.3-pre" +#define BLASTEM_VERSION "1.0.1-pre"