Mercurial > repos > blastem
comparison system.c @ 2560:6404643aca38
Fix crash when switching between loading ZIP and non-ZIP ROMs
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 Jan 2025 21:34:19 -0800 |
parents | c30f0a288ccf |
children | c768bbd912f1 |
comparison
equal
deleted
inserted
replaced
2559:e534423bd20d | 2560:6404643aca38 |
---|---|
147 { | 147 { |
148 uint8_t header[10]; | 148 uint8_t header[10]; |
149 #ifndef IS_LIB | 149 #ifndef IS_LIB |
150 if (dst->zip) { | 150 if (dst->zip) { |
151 zip_close(dst->zip); | 151 zip_close(dst->zip); |
152 dst->zip = NULL; | |
152 } | 153 } |
153 #endif | 154 #endif |
154 dst->orig_path = filename; | 155 dst->orig_path = filename; |
155 char *ext = path_extension(filename); | 156 char *ext = path_extension(filename); |
156 #ifndef IS_LIB | 157 #ifndef IS_LIB |