diff --git a/__pycache__/config.cpython-312.pyc b/__pycache__/config.cpython-312.pyc deleted file mode 100644 index 91c6b99..0000000 Binary files a/__pycache__/config.cpython-312.pyc and /dev/null differ diff --git a/zxdb.py b/zxdb.py index d74afcc..39bfe86 100644 --- a/zxdb.py +++ b/zxdb.py @@ -280,7 +280,7 @@ def unzip_file(src, dst): dst (str): Ruta del directorio donde se extraerán los ficheros. Extensiones soportadas: - .z80, .sna, .tzx, .tap, .dsk, .trd + .tap, .tzx, .stl, .sna, .z80, .dsk, .fdi, .trd, .img, .mgt, .szx, .dck Comportamiento: - Abre el archivo ZIP especificado por `src`. @@ -297,8 +297,14 @@ def unzip_file(src, dst): """ archive = src directory = dst - extensions = (".z80", ".sna", ".tzx", ".tap", ".dsk", ".trd") - + tape_file_formats = (".tap", ".tzx") + snapshot_file_formats = (".stl", ".sna", ".z80") + disk_file_formats = (".dsk", ".fdi", ".trd", ".img", ".mgt") + emulator_specific_formats = (".szx", ".dck") + + # Sumar todas las listas anteriores + extensions = tape_file_formats + snapshot_file_formats + disk_file_formats + emulator_specific_formats + try: with zipfile.ZipFile(archive, "r") as zip_file: for file in zip_file.namelist():