Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion patches/main.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#include "patches.h"
#include "ui_funcs.h"

// @recomp Patched to enable RT64's extended GBI mode and set the correct refresh rate.
RECOMP_PATCH void func_800012FC_1EFC() {
if ((D_8008CCC0_8D8C0.controllers[0].button_held_down & L_TRIG) && (D_8008CCC0_8D8C0.controllers[0].button_held_down & Z_TRIG) && (D_8008CCC0_8D8C0.controllers[0].button_held_down & R_JPAD)) {
D_8008CCC0_8D8C0.mode = 10;
}

// @recomp Run Ui Callbacks
recomp_run_ui_callbacks();

gEXEnable(D_8015C5CC_15D1CC++);
// gEXSetRDRAMExtended(D_8015C5CC_15D1CC++, 1);

Expand Down
5 changes: 5 additions & 0 deletions patches/patches.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
#include "functions.h"
#include "variables.h"

#define true 1
#define false 0

typedef _Bool bool;

static inline void* memcpy(void* s1, const void* s2, size_t n) {
char* su1 = (char*)s1;
const char* su2 = (const char*)s2;
Expand Down
3 changes: 2 additions & 1 deletion patches/syms.ld
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ osViSwapBuffer_recomp = 0x8F000068;
osWritebackDCacheAll_recomp = 0x8F00006C;
sprintf_recomp = 0x8F000070;
recomp_puts = 0x8F000074;
recomp_exit = 0x8F000078;
recomp_exit = 0x8F000078;
recomp_run_ui_callbacks = 0x8F0000B8;
Loading