mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-03-05 03:05:23 +01:00

Integrates the modding functionality in N64ModernRuntime and adds several exported functions for mods to use. Also adds a ROM decompressor so that the runtime has access to the uncompressed code in the ROM for hooking purposes.
25 lines
437 B
C
25 lines
437 B
C
#ifndef __PATCH_HELPERS_H__
|
|
#define __PATCH_HELPERS_H__
|
|
|
|
#ifdef MIPS
|
|
#include "ultra64.h"
|
|
#else
|
|
#include "recomp.h"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
# define EXTERNC extern "C"
|
|
#else
|
|
# define EXTERNC
|
|
#endif
|
|
|
|
#ifdef MIPS
|
|
# define DECLARE_FUNC(type, name, ...) \
|
|
EXTERNC type name(__VA_ARGS__)
|
|
#else // MIPS
|
|
# define DECLARE_FUNC(type, name, ...) \
|
|
EXTERNC void name(uint8_t* rdram, recomp_context* ctx)
|
|
#endif
|
|
|
|
#endif
|