mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-03-04 18:55:21 +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.
19 lines
351 B
C
19 lines
351 B
C
#include "patches.h"
|
|
#include "misc_funcs.h"
|
|
|
|
void* proutPrintf(void* dst, const char* fmt, size_t size) {
|
|
recomp_puts(fmt, size);
|
|
return (void*)1;
|
|
}
|
|
|
|
RECOMP_EXPORT int recomp_printf(const char* fmt, ...) {
|
|
va_list args;
|
|
va_start(args, fmt);
|
|
|
|
int ret = _Printf(&proutPrintf, NULL, fmt, args);
|
|
|
|
va_end(args);
|
|
|
|
return ret;
|
|
}
|