Last active
July 18, 2026 20:07
-
-
Save Siphonay/0cb8f345d8de5666384ce02ece5d682b to your computer and use it in GitHub Desktop.
Pokémon Gen 1 disassembly helper scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # dex_order.sh | |
| # Written by Siph | |
| # Created 18/07/2026 | |
| # Licence: CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/ | |
| # Print dex entries of the second file in the order of the first file | |
| # Meant for pret gen 1 decomps, originally to re-order entries for pokered into the one used in pokeyellow | |
| if [ "${#}" -ne 2 ]; | |
| then | |
| >&2 echo "usage: ${0} <ordered-dex-entries> <unordered-dex-entries>" | |
| exit 1 | |
| fi | |
| desired_order=$(grep -e '^.*DexEntry:$' "${1}") | |
| for i in ${desired_order} | |
| do | |
| grep -A 6 "${i}" "${2}" | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment