live laugh love

This commit is contained in:
Tristan Smith 2024-04-07 20:29:24 -04:00
parent a54c39fd46
commit 3e5fea1963

View file

@ -12,7 +12,7 @@ def filter_and_repack_zip(zip_path):
with zipfile.ZipFile(zip_path, 'r') as original_zip: with zipfile.ZipFile(zip_path, 'r') as original_zip:
with zipfile.ZipFile(new_zip_path, 'w') as new_zip: with zipfile.ZipFile(new_zip_path, 'w') as new_zip:
for file in original_zip.namelist(): for file in original_zip.namelist():
if "(USA" in file or "(USA, Europe)" in file: if "(USA" in file or "(USA, Europe)" in file or "(Proto" in file or "[BIOS" in file:
new_zip.writestr(file, original_zip.read(file)) new_zip.writestr(file, original_zip.read(file))
else: else:
print(f"Removing {file} from {zip_path}") print(f"Removing {file} from {zip_path}")