On the Fight, Bag, Pokemon, Run menu, pressing B will move the cursor to Run as long as the battle type isn't BATTLE_TYPE_TRAINER.
See here for the prequisites and help in installing them.
Open your terminal to whatever folder you want to download this repo into. Then, do the following to download the repo and build the included tools:
$ git clone https://github.com/VentDystopic/bpre-b-wildbattle-run.git
$ cd bpre-b-wildbatle-run
Copy your ROM to this directory and rename it BPRE.gba
.
You can specify it by updating the definition of START_AT
in config.mk
.
If the given address is acceptable (i.e. is word-aligned and has enough bytes of free space), it will be inserted there. Otherwise, it will just use START_AT
to determine where in the ROM it should start looking for free space.
Once you're ready, run the following to build the project:
make
This won't actually modify BPRE.gba
, instead your output will be in build/rom.gba
. Naturally, test it in an emulator.
The modifications belongs to Deokishisu, you can find it on this commit: FRLG-Plus: B in Wild Battles Moves the Cursor to Run. I used this template for C Inyections made by Acimut. The project structure and some of the build tools are from pokefirered.