ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/rsrc_patches.cpp
(Generate patch)

Comparing SheepShaver/src/rsrc_patches.cpp (file contents):
Revision 1.6 by gbeauche, 2003-11-10T14:18:34Z vs.
Revision 1.7 by gbeauche, 2003-12-04T17:26:35Z

# Line 31 | Line 31
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"
# Line 716 | Line 717 | void PatchNativeResourceManager(void)
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;
# Line 733 | Line 734 | void PatchNativeResourceManager(void)
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;
# Line 750 | Line 751 | void PatchNativeResourceManager(void)
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;
# Line 767 | Line 768 | void PatchNativeResourceManager(void)
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;
# Line 784 | Line 785 | void PatchNativeResourceManager(void)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines