notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d70d1
)
mcd, fix no chd music in some cases
author
kub
<derkub@gmail.com>
Thu, 29 Jun 2023 19:54:07 +0000
(19:54 +0000)
committer
kub
<derkub@gmail.com>
Thu, 29 Jun 2023 19:54:07 +0000
(19:54 +0000)
pico/cd/cd_parse.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/cd/cd_parse.c
b/pico/cd/cd_parse.c
index
53c15d2
..
0a802ed
100644
(file)
--- a/
pico/cd/cd_parse.c
+++ b/
pico/cd/cd_parse.c
@@
-172,7
+172,8
@@
cd_data_t *chd_parse(const char *fname)
}
memset(&data->tracks[count], 0, sizeof(data->tracks[0]));
- data->tracks[count].fname = strdup(fname);
+ if (count == 1)
+ data->tracks[count].fname = strdup(fname);
if (!strcmp(type, "MODE1_RAW") || !strcmp(type, "MODE2_RAW")) {
data->tracks[count].type = CT_BIN;
} else if (!strcmp(type, "MODE1") || !strcmp(type, "MODE2_FORM1")) {