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