31 |
|
#include "rom_patches.h" |
32 |
|
#include "main.h" |
33 |
|
#include "audio.h" |
34 |
+ |
#include "thunks.h" |
35 |
|
|
36 |
|
#define DEBUG 0 |
37 |
|
#include "debug.h" |
717 |
|
*(uint32 *)XLM_RES_LIB_TOC = tvec[1]; |
718 |
|
*(uint32 *)XLM_GET_RESOURCE = tvec[0]; |
719 |
|
#if EMULATED_PPC |
720 |
< |
tvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_GET_RESOURCE)); |
720 |
> |
tvec[0] = htonl(NativeFunction(NATIVE_GET_RESOURCE)); |
721 |
|
#else |
722 |
|
#ifdef __BEOS__ |
723 |
|
uint32 *tvec2 = (uint32 *)get_resource; |
734 |
|
D(bug(" Get1Resource() entry %08x, TOC %08x\n", ntohl(tvec[0]), ntohl(tvec[1]))); |
735 |
|
*(uint32 *)XLM_GET_1_RESOURCE = tvec[0]; |
736 |
|
#if EMULATED_PPC |
737 |
< |
tvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_GET_1_RESOURCE)); |
737 |
> |
tvec[0] = htonl(NativeFunction(NATIVE_GET_1_RESOURCE)); |
738 |
|
#else |
739 |
|
#ifdef __BEOS__ |
740 |
|
tvec2 = (uint32 *)get_1_resource; |
751 |
|
D(bug(" GetIndResource() entry %08x, TOC %08x\n", ntohl(tvec[0]), ntohl(tvec[1]))); |
752 |
|
*(uint32 *)XLM_GET_IND_RESOURCE = tvec[0]; |
753 |
|
#if EMULATED_PPC |
754 |
< |
tvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_GET_IND_RESOURCE)); |
754 |
> |
tvec[0] = htonl(NativeFunction(NATIVE_GET_IND_RESOURCE)); |
755 |
|
#else |
756 |
|
#ifdef __BEOS__ |
757 |
|
tvec2 = (uint32 *)get_ind_resource; |
768 |
|
D(bug(" Get1IndResource() entry %08x, TOC %08x\n", ntohl(tvec[0]), ntohl(tvec[1]))); |
769 |
|
*(uint32 *)XLM_GET_1_IND_RESOURCE = tvec[0]; |
770 |
|
#if EMULATED_PPC |
771 |
< |
tvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_GET_1_IND_RESOURCE)); |
771 |
> |
tvec[0] = htonl(NativeFunction(NATIVE_GET_1_IND_RESOURCE)); |
772 |
|
#else |
773 |
|
#ifdef __BEOS__ |
774 |
|
tvec2 = (uint32 *)get_1_ind_resource; |
785 |
|
D(bug(" RGetResource() entry %08x, TOC %08x\n", ntohl(tvec[0]), ntohl(tvec[1]))); |
786 |
|
*(uint32 *)XLM_R_GET_RESOURCE = tvec[0]; |
787 |
|
#if EMULATED_PPC |
788 |
< |
tvec[0] = htonl(POWERPC_NATIVE_OP_FUNC(NATIVE_R_GET_RESOURCE)); |
788 |
> |
tvec[0] = htonl(NativeFunction(NATIVE_R_GET_RESOURCE)); |
789 |
|
#else |
790 |
|
#ifdef __BEOS__ |
791 |
|
tvec2 = (uint32 *)r_get_resource; |