Opened 6 years ago
Closed 2 years ago
#35 closed enhancement (fixed)
Allow loading ROMs from ZIP files
Reported by: | Sik | Owned by: | mikepavone |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | user interface | Version: | 0.5.0 |
Keywords: | Cc: |
Description
A lot of ROMs (pretty much anything from a ROM set, for starters) come in ZIP files and even if space isn't a concern, having to explicitly extract them just to use them in BlastEm is an annoyance, especially when it needs to be done for every game.
Probably the easiest way would be to use libzip:
- Use zip_open to open the archive
- Use zip_get_num_entries and zip_stat_index to loop through all files in the archive until finding a filename that looks like a possible ROM
- Use zip_fopen, zip_fread, zip_fclose to extract the ROM from the archive
- Then finally zip_close the archive
If no ROM has been found within the archive, just throw an error message.
Change History (1)
comment:1 Changed 2 years ago by mikepavone
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
This was implemented in 0.6.2