Skip to content

Instantly share code, notes, and snippets.

@therocco
Last active October 5, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therocco/b7eca0b4c1871c667345baf0f955e8f3 to your computer and use it in GitHub Desktop.
Save therocco/b7eca0b4c1871c667345baf0f955e8f3 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Convert SNES ROMS from SMC to SFROM for use on SNES Classic
#
# NOTE:
# To use this script you will need the python script ebafewuzur.py
# which can be downloaded from the following link
# https://hastebin.com/ebafewuzur.py
#
# DIRECTIONS:
# 1. Save this script to the same folder you are storing your ROMs and ebafewuzur.py file and name it convert.sh
# 2. Make it executable by running "chmod a+x convert.sh" in your terminal
# 3. Run the script. It will remove all spaces from your ROM names and then convert them to sfrom format
find -name "* *.s?c" -type f | rename 's/ /_/g'
for f in *.s?c; do echo "\"./$f\"" && python3 ebafewuzur.py ./$f ./${f%.s?c}.sfrom; done
@therocco
Copy link
Author

therocco commented Oct 5, 2017

Updated script to use the updated ebafewuzur.py script since it adds support for more games as well as 2P support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment