Skip to content

Instantly share code, notes, and snippets.

View tobadia's full-sized avatar

Thomas Obadia tobadia

  • Institut Pasteur
  • Paris, France
View GitHub Profile
@funkatron
funkatron / openemu_single_file_archives.md
Created January 6, 2014 00:45
converting 7zip files with multiple ROMs to individual files for OpenEmu usage

I use Homebrew for package management, so the instructions here work with that. You could probably get p7zip and atool another way if you want.

  1. install p7zip with homebrew: brew install p7zip
  2. install atool with homebrew: brew install atool
  3. extract individual files from .7z archives to current directory: atool -X . -e -E *.7z
  4. delete or move the .7z files: rm *.7z
  5. archive each file into its own ZIP archive using find and atool: find . -d 1 -type f -exec atool -a -F 7z -E -e {} ';'
  6. delete the uncompressed rom files. They should have a common file extension, which you'll need to change depending on the ROM type. For example, I needed to delete a bunch of .gb and .gbc files: rm *.gb; rm *.gbc