Skip to content

Instantly share code, notes, and snippets.

@loveemu
Created June 8, 2019 18:24
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 loveemu/665702871c8503f9e120ba330f8e7944 to your computer and use it in GitHub Desktop.
Save loveemu/665702871c8503f9e120ba330f8e7944 to your computer and use it in GitHub Desktop.
GSF creation and optimization example
# Convert the patched ROM to gsflib
#
# https://github.com/loveemu/rom2gsf
rom2gsf -o AGB-BP7J-JPN.gsflib AGB-BP7J-JPN.gba
# 256 files are too many in most cases,
# but it's handy when the appropriate count is not sure
#
# https://github.com/loveemu/minigsf
minigsf --psfby loveemu AGB-BP7J-JPN 0x80002dc 1 256
# Delete unsounding minigsfs before the optimization
# Create optimized gsflib
#
# https://github.com/loveemu/gsfopt
gsfopt -l *.minigsf
# mv AGB-BP7J-JPN-????.gsflib AGB-BP7J-JPN.gsflib
# Set timings to minigsfs
#
# This line can be executed in parallel with the line above if speedup is necessary
gsfopt -t -T *.minigsf
# Use psfpoint for other batch taggings
#
# https://github.com/loveemu/psfpoint
psfpoint "-comment=Foo Bar Baz" *.minigsf
psfpoint -psfby=loveemu *.gsflib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment