diff options
Diffstat (limited to 'gba/source/payload.c')
| -rw-r--r-- | gba/source/payload.c | 18 |
1 files changed, 18 insertions, 0 deletions
| diff --git a/gba/source/payload.c b/gba/source/payload.c new file mode 100644 index 0000000..7015774 --- /dev/null +++ b/gba/source/payload.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* | ||
| 2 | * Example Gen3-multiboot payload by slipstream/RoL 2017. | ||
| 3 | * | ||
| 4 | * This software may be modified and distributed under the terms | ||
| 5 | * of the MIT license. See the LICENSE file for details. | ||
| 6 | * | ||
| 7 | * payload.c: place where user payload should go :) | ||
| 8 | */ | ||
| 9 | |||
| 10 | #include <gba.h> | ||
| 11 | #include "payload.h" | ||
| 12 | |||
| 13 | // Your payload code should obviously go into the body of this, the payload function. | ||
| 14 | void payload(pSaveBlock1 SaveBlock1,pSaveBlock2 SaveBlock2,pSaveBlock3 SaveBlock3) { | ||
| 15 | // This example payload will modify the first character of the player's name. | ||
| 16 | // It will change to 'z'. You can see the character encoding table here: http://bulbapedia.bulbagarden.net/wiki/Character_encoding_in_Generation_III | ||
| 17 | SaveBlock2[0] = 0xee; // 'z' | ||
| 18 | } \ No newline at end of file | ||
