comparison blastem.c @ 2114:2449c88cea36

Enhance support for CUE files and add initial support for cdrdao TOC files
author Michael Pavone <pavone@retrodev.com>
date Wed, 16 Feb 2022 21:22:12 -0800
parents 372625dd9590
children 9826d50061a0
comparison
equal deleted inserted replaced
2113:0013362c320c 2114:2449c88cea36
28 #include "arena.h" 28 #include "arena.h"
29 #include "config.h" 29 #include "config.h"
30 #include "bindings.h" 30 #include "bindings.h"
31 #include "menu.h" 31 #include "menu.h"
32 #include "zip.h" 32 #include "zip.h"
33 #include "cue.h" 33 #include "cdimage.h"
34 #include "event_log.h" 34 #include "event_log.h"
35 #ifndef DISABLE_NUKLEAR 35 #ifndef DISABLE_NUKLEAR
36 #include "nuklear_ui/blastem_nuklear.h" 36 #include "nuklear_ui/blastem_nuklear.h"
37 #endif 37 #endif
38 38
244 dst->extension = path_extension(filename); 244 dst->extension = path_extension(filename);
245 dst->size = ret; 245 dst->size = ret;
246 romclose(f); 246 romclose(f);
247 if (!strcasecmp(dst->extension, "cue")) { 247 if (!strcasecmp(dst->extension, "cue")) {
248 if (parse_cue(dst)) { 248 if (parse_cue(dst)) {
249 if (stype) {
250 *stype = SYSTEM_SEGACD;
251 }
252 }
253 } else if (!strcasecmp(dst->extension, "toc")) {
254 if (parse_toc(dst)) {
249 if (stype) { 255 if (stype) {
250 *stype = SYSTEM_SEGACD; 256 *stype = SYSTEM_SEGACD;
251 } 257 }
252 } 258 }
253 } 259 }