mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-27 00:29:40 +00:00
Darwin function descriptors act as Linux ones
This commit is contained in:
parent
04e7fcf5d3
commit
384648a740
@ -112,7 +112,7 @@ bool ThunksInit(void)
|
|||||||
native_op[i].func = base + 8;
|
native_op[i].func = base + 8;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
|
||||||
#define DEFINE_NATIVE_OP(ID, FUNC) do { \
|
#define DEFINE_NATIVE_OP(ID, FUNC) do { \
|
||||||
uintptr base = SheepMem::Reserve(8); \
|
uintptr base = SheepMem::Reserve(8); \
|
||||||
WriteMacInt32(base + 0, (uint32)FUNC); \
|
WriteMacInt32(base + 0, (uint32)FUNC); \
|
||||||
|
Loading…
Reference in New Issue
Block a user