2023-11-12 14:47:38 -05:00
|
|
|
#ifndef __PATCHES_H__
|
|
|
|
#define __PATCHES_H__
|
|
|
|
|
2024-01-13 01:39:08 -05:00
|
|
|
// TODO fix renaming symbols in patch recompilation
|
|
|
|
#define osRecvMesg osRecvMesg_recomp
|
|
|
|
#define osSendMesg osSendMesg_recomp
|
2023-11-12 14:47:38 -05:00
|
|
|
#include "global.h"
|
2023-12-01 10:56:20 -05:00
|
|
|
#include "rt64_extended_gbi.h"
|
2023-11-12 14:47:38 -05:00
|
|
|
|
2023-11-24 17:10:21 -05:00
|
|
|
int recomp_printf(const char* fmt, ...);
|
|
|
|
|
2024-02-24 16:14:48 -05:00
|
|
|
static inline void* actor_relocate(Actor* actor, void* addr) {
|
|
|
|
return (void*)((uintptr_t)addr -
|
|
|
|
(intptr_t)((uintptr_t)actor->overlayEntry->vramStart - (uintptr_t)actor->overlayEntry->loadedRamAddr));
|
|
|
|
}
|
|
|
|
|
2023-11-12 14:47:38 -05:00
|
|
|
#endif
|