Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save richardgill/b8d717cb8e854aff9d2dcf68995595cc to your computer and use it in GitHub Desktop.

Select an option

Save richardgill/b8d717cb8e854aff9d2dcf68995595cc to your computer and use it in GitHub Desktop.
Mario Golf: Toadstool Tour (GFTE01) Dolphin Gecko codes: airborne speedup and widescreen instructions
$Airborne Speedup While Holding A
04417B48 4BBEAF18
04002A60 3D808000
04002A64 39200000
04002A68 912C2BC0
04002A6C 8123004C
04002A70 912C2BD4
04002A74 2C090002
04002A78 4082003C
04002A7C 81230098
04002A80 2C090002
04002A84 40810030
04002A88 3D808027
04002A8C A12CBB60
04002A90 3D808000
04002A94 912C2BD8
04002A98 71290100
04002A9C 41820018
04002AA0 39200001
04002AA4 912C2BC0
04002AA8 812C2BC4
04002AAC 39290001
04002AB0 912C2BC4
04002AB4 81230098
04002AB8 48415094
04421494 4BBE176C
04002C00 3D808000
04002C04 800C2BE0
04002C08 38000001
04002C0C 900C2BE0
04002C10 912C2BF8
04002C14 800C2BC0
04002C18 2C000001
04002C1C 40820100
04002C20 800C2BE4
04002C24 38000001
04002C28 900C2BE4
04002C2C 9421FF70
04002C30 7C0802A6
04002C34 90010094
04002C38 90610060
04002C3C 91410068
04002C40 9161006C
04002C44 91810070
04002C48 93E10074
04002C4C 3D808000
04002C50 93EC2BBC
04002C54 48000079
04002C58 40820044
04002C5C 3D808000
04002C60 906C2BF0
04002C64 900C2BF4
04002C68 800C2BE8
04002C6C 38000001
04002C70 900C2BE8
04002C74 48000099
04002C78 48000081
04002C7C 48000051
04002C80 4082001C
04002C84 48000089
04002C88 48000071
04002C8C 48000041
04002C90 4082000C
04002C94 48000079
04002C98 48000061
04002C9C 3D808000
04002CA0 83EC2BBC
04002CA4 813F001C
04002CA8 912C2BFC
04002CAC 81810070
04002CB0 8161006C
04002CB4 81410068
04002CB8 80610060
04002CBC 80010094
04002CC0 7C0803A6
04002CC4 38210090
04002CC8 48000054
04002CCC 3D808000
04002CD0 83EC2BBC
04002CD4 807F0008
04002CD8 2C030000
04002CDC 41820014
04002CE0 386300E8
04002CE4 8003004C
04002CE8 2C000002
04002CEC 4E800020
04002CF0 2C030001
04002CF4 4E800020
04002CF8 3D808000
04002CFC 816C2BEC
04002D00 396B0001
04002D04 916C2BEC
04002D08 4E800020
04002D0C 3D808041
04002D10 618C7B00
04002D14 7D8903A6
04002D18 4E800420
04002D1C 8009004C
04002D20 4841E778

Mario Golf: Toadstool Tour (USA) — GFTE01 Dolphin Gecko codes

Search terms: Mario Golf: Toadstool Tour, GFTE01, Dolphin, Gecko, widescreen, Airborne Speedup While Holding A.

Target game:

Mario Golf: Toadstool Tour (USA)
Game ID: GFTE01
Platform: GameCube
Emulator tested: Dolphin

Included files

GFTE01-airborne-speedup-hold-a.gecko
GFTE01-widescreen-16x9-gamemasterplc.s

Airborne Speedup While Holding A

This Gecko code speeds up ball flight while holding A.

Behavior: while holding A during confirmed ball-flight state, the code runs up to three extra real ball updates per rendered frame. This gives roughly 4x flight simulation speed while preserving distance better than raw velocity scaling.

Install in Dolphin:

  1. Open or create:

    ~/.local/share/dolphin-emu/GameSettings/GFTE01.ini
  2. Paste the contents of GFTE01-airborne-speedup-hold-a.gecko under [Gecko].

  3. Enable this exact code name under [Gecko_Enabled]:

    [Gecko_Enabled]
    $Airborne Speedup While Holding A

Widescreen instructions for GFTE01

The included GFTE01-widescreen-16x9-gamemasterplc.s is the PowerPC assembly source for the original 16:9 widescreen Gecko. When using the compiled widescreen Gecko in Dolphin, also add this per-game setting:

[Video_Settings]
SuggestedAspectRatio = 1

That setting is important in Dolphin. It tells Dolphin to treat GFTE01 as widescreen when using the Gecko code. Without it, Dolphin's automatic aspect-ratio heuristic can intermittently treat the output as 4:3 during transitions, causing frame dumps or display sizing like 640x492 instead of the expected widescreen-ish 780x448.

Install the widescreen setup by compiling/using the Gecko generated from GFTE01-widescreen-16x9-gamemasterplc.s, then merge this shape into GFTE01.ini:

[Video_Settings]
SuggestedAspectRatio = 1

[Gecko]
$widescreen
...

[Gecko_Enabled]
$widescreen

If you use both codes, enable both:

[Gecko_Enabled]
$widescreen
$Airborne Speedup While Holding A

Notes

  • SuggestedAspectRatio = 1 is Dolphin GameINI metadata, not a Gecko code.
  • Dolphin's enum value 1 means ForceWide.
  • These are for GFTE01 / USA. Other regions need separate testing/porting.
  • Keep backups of your GFTE01.ini before editing.
.section .text
.global aspect_patch_start
.global aspect_patch_end
.global scale_xz_start
.global scale_xz_end
aspect_patch_start:
lis r4, 0x3FAA
ori r4, r4, 0xAAAB
stw r4, 0(r2)
lfs f17, 0(r2)
fmuls f8, f17, f8
fdivs f10, f9, f8
nop
.long 0
aspect_patch_end:
scale_xz_start:
lfs f17, 0(r2)
lfs f1, 0(r3)
fmuls f1, f17, f1
stfs f1, 0(r3)
lfs f1, 12(r3)
fmuls f1, f17, f1
stfs f1, 12(r3)
li r4, 1
nop
.long 0
scale_xz_end:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment