| 128 |
#else |
#else |
| 129 |
#error "FIXME: define NativeOp for your platform" |
#error "FIXME: define NativeOp for your platform" |
| 130 |
#endif |
#endif |
| 131 |
|
// FIXME: add GetResource() and friends for completeness |
| 132 |
DEFINE_NATIVE_OP(NATIVE_PATCH_NAME_REGISTRY, DoPatchNameRegistry); |
DEFINE_NATIVE_OP(NATIVE_PATCH_NAME_REGISTRY, DoPatchNameRegistry); |
| 133 |
DEFINE_NATIVE_OP(NATIVE_VIDEO_INSTALL_ACCEL, VideoInstallAccel); |
DEFINE_NATIVE_OP(NATIVE_VIDEO_INSTALL_ACCEL, VideoInstallAccel); |
| 134 |
DEFINE_NATIVE_OP(NATIVE_VIDEO_VBL, VideoVBL); |
DEFINE_NATIVE_OP(NATIVE_VIDEO_VBL, VideoVBL); |
| 151 |
#undef DEFINE_NATIVE_OP |
#undef DEFINE_NATIVE_OP |
| 152 |
#endif |
#endif |
| 153 |
|
|
| 154 |
// Initialize routine descriptors |
// Initialize routine descriptors (if TVECT exists) |
| 155 |
for (int i = 0; i < NATIVE_OP_MAX; i++) |
for (int i = 0; i < NATIVE_OP_MAX; i++) { |
| 156 |
native_op[i].desc = new SheepRoutineDescriptor(0, NativeTVECT(i)); |
uint32 tvect = native_op[i].tvect; |
| 157 |
|
if (tvect) |
| 158 |
|
native_op[i].desc = new SheepRoutineDescriptor(0, tvect); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
return true; |
return true; |
| 162 |
} |
} |