Mercurial > repos > blastem
diff blastem.c @ 2059:6399a776e981 segacd
Add basic support for BIN/CUE images
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Jan 2022 21:59:46 -0800 |
parents | 3414a4423de1 |
children | 7c1760b5b3e5 |
line wrap: on
line diff
--- a/blastem.c Fri Jan 21 20:24:48 2022 -0800 +++ b/blastem.c Fri Jan 21 21:59:46 2022 -0800 @@ -30,6 +30,7 @@ #include "bindings.h" #include "menu.h" #include "zip.h" +#include "cue.h" #include "event_log.h" #ifndef DISABLE_NUKLEAR #include "nuklear_ui/blastem_nuklear.h" @@ -235,8 +236,13 @@ dst->name = basename_no_extension(filename); dst->extension = path_extension(filename); dst->size = ret; + romclose(f); + if (!strcasecmp(dst->extension, "cue")) { + if (parse_cue(dst)) { + *stype = SYSTEM_SEGACD; + } + } - romclose(f); return ret; }