Mercurial > repos > blastem
comparison blastem.c @ 2203:9826d50061a0
Fix suport for Game Gear ROMs inside Zip archives
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 22 Aug 2022 22:59:42 -0700 |
parents | 2449c88cea36 |
children | 5e6e589efbad |
comparison
equal
deleted
inserted
replaced
2202:ee6d30c56eeb | 2203:9826d50061a0 |
---|---|
133 return 0; | 133 return 0; |
134 } | 134 } |
135 | 135 |
136 uint32_t load_media_zip(const char *filename, system_media *dst) | 136 uint32_t load_media_zip(const char *filename, system_media *dst) |
137 { | 137 { |
138 static const char *valid_exts[] = {"bin", "md", "gen", "sms", "rom", "smd"}; | 138 static const char *valid_exts[] = {"bin", "md", "gen", "sms", "gg", "rom", "smd"}; |
139 const uint32_t num_exts = sizeof(valid_exts)/sizeof(*valid_exts); | 139 const uint32_t num_exts = sizeof(valid_exts)/sizeof(*valid_exts); |
140 zip_file *z = zip_open(filename); | 140 zip_file *z = zip_open(filename); |
141 if (!z) { | 141 if (!z) { |
142 return 0; | 142 return 0; |
143 } | 143 } |