2023-11-12 19:47:38 +00:00
|
|
|
#ifndef __PATCHES_H__
|
|
|
|
#define __PATCHES_H__
|
|
|
|
|
2024-01-13 06:39:08 +00:00
|
|
|
// TODO fix renaming symbols in patch recompilation
|
|
|
|
#define osRecvMesg osRecvMesg_recomp
|
|
|
|
#define osSendMesg osSendMesg_recomp
|
2023-11-12 19:47:38 +00:00
|
|
|
#include "global.h"
|
2023-12-01 15:56:20 +00:00
|
|
|
#include "rt64_extended_gbi.h"
|
2023-11-12 19:47:38 +00:00
|
|
|
|
2024-03-02 18:33:09 +00:00
|
|
|
#define gEXMatrixGroupInterpolateOnlyTiles(cmd, push, proj) \
|
|
|
|
gEXMatrixGroup(cmd, G_EX_ID_IGNORE, G_EX_INTERPOLATE_SIMPLE, push, proj, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_SKIP, G_EX_COMPONENT_INTERPOLATE, G_EX_ORDER_LINEAR)
|
|
|
|
|
|
|
|
|
2023-11-24 22:10:21 +00:00
|
|
|
int recomp_printf(const char* fmt, ...);
|
2024-03-03 07:36:14 +00:00
|
|
|
float recomp_powf(float, float);
|
2023-11-24 22:10:21 +00:00
|
|
|
|
2024-02-24 21:14:48 +00: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 19:47:38 +00:00
|
|
|
#endif
|