|
|
|
@ -59,10 +59,10 @@ typedef struct interpose_s
|
|
|
|
|
|
|
|
|
|
};*/
|
|
|
|
|
|
|
|
|
|
#define DYLD_INTERPOSE(_replacment,_replacee) \
|
|
|
|
|
#define DYLD_INTERPOSE(_replacement,_replacee) \
|
|
|
|
|
__attribute__((used)) static struct{ const void* replacment; const void* replacee; } \
|
|
|
|
|
_interpose_##_replacee __attribute__ ((section ("__DATA,__interpose"))) = \
|
|
|
|
|
{ (const void*)(unsigned long)&_replacment, (const void*)(unsigned long)&_replacee };
|
|
|
|
|
{ (const void*)(unsigned long)&_replacement, (const void*)(unsigned long)&_replacee };
|
|
|
|
|
|
|
|
|
|
DYLD_INTERPOSE(DFH_SDL_Init,SDL_Init);
|
|
|
|
|
DYLD_INTERPOSE(DFH_SDL_PollEvent,SDL_PollEvent);
|
|
|
|
|