mirror of
https://github.com/libretro/smsplus-gx.git
synced 2024-12-11 11:03:57 +00:00
Fix supprot for zipped Colecovision roms.
This commit is contained in:
parent
d80c99668e
commit
81377bab7f
@ -27,6 +27,11 @@ uint8_t *loadFromZipByName(char *archive, char *filename, uint32_t *filesize)
|
||||
|
||||
/* Get information about the file */
|
||||
unzGetCurrentFileInfo(zhandle, &zinfo, &name[0], 0xff, NULL, 0, NULL, 0);
|
||||
|
||||
/* Force console if file extension is detected */
|
||||
if (strcmp(strrchr(&name[0], '.'), ".col") == 0) option.console = 6;
|
||||
else if (strcmp(strrchr(&name[0], '.'), ".gg") == 0) option.console = 3;
|
||||
|
||||
*filesize = zinfo.uncompressed_size;
|
||||
|
||||
/* Error: file size is zero */
|
||||
|
Loading…
Reference in New Issue
Block a user