Skip to content

Instantly share code, notes, and snippets.

@PlatinumMaster
Last active April 9, 2020 23:49
Show Gist options
  • Save PlatinumMaster/af1dc8d7501ed0e02a687e0fa0f236fc to your computer and use it in GitHub Desktop.
Save PlatinumMaster/af1dc8d7501ed0e02a687e0fa0f236fc to your computer and use it in GitHub Desktop.
pokeemerald voicegroup/cry_table fixup script
#!/bin/bash
# Sound Fixup script.
cd sound;
# Voice Groups
mkdir voicegroups;
cd voicegroups;
csplit -z -n 3 "../voice_groups.inc" /".align 2"/ {*} -f voicegroup;
for f in * ;
do
mv "$f" "${f}".inc ;
done;
cp "../voice_groups.inc" "../voice_groups.bak";
rm "../voice_groups.inc";
for f in *;
do
echo ".include \"sound/voicegroups/${f}\"" >> ../voice_groups.inc ;
done;
echo "Done";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment