=============== InitializeDLL() ===============
| 331 | // InitializeDLL() |
| 332 | // =============== |
| 333 | char STDCALL InitializeDLL(tOSIRISModuleInit *func_list) { |
| 334 | osicommon_Initialize((tOSIRISModuleInit *)func_list); |
| 335 | if (func_list->game_checksum != CHECKSUM) { |
| 336 | mprintf(0, "Game-Checksum FAIL!!! (%ul!=%ul)\n", func_list->game_checksum, CHECKSUM); |
| 337 | mprintf(0, "RECOMPILE YOUR SCRIPTS!!!\n"); |
| 338 | return 0; |
| 339 | } |
| 340 | |
| 341 | ClearGlobalActionCtrs(); |
| 342 | dfInit(); |
| 343 | InitMessageList(); |
| 344 | ReadMessageFile("barney.msg"); |
| 345 | |
| 346 | int j; |
| 347 | |
| 348 | // Do Door Index lookups |
| 349 | for (j = 0; j < NUM_DOOR_NAMES; j++) |
| 350 | Door_handles[j] = Scrpt_FindDoorName(Door_names[j]); |
| 351 | |
| 352 | // Do Object Index lookups |
| 353 | for (j = 0; j < NUM_OBJECT_NAMES; j++) |
| 354 | Object_handles[j] = Scrpt_FindObjectName(Object_names[j]); |
| 355 | |
| 356 | // Do Room Index lookups |
| 357 | for (j = 0; j < NUM_ROOM_NAMES; j++) |
| 358 | Room_indexes[j] = Scrpt_FindRoomName(Room_names[j]); |
| 359 | |
| 360 | // Do Trigger Index lookups |
| 361 | for (j = 0; j < NUM_TRIGGER_NAMES; j++) { |
| 362 | Trigger_indexes[j] = Scrpt_FindTriggerName(Trigger_names[j]); |
| 363 | Trigger_faces[j] = Scrpt_GetTriggerFace(Trigger_indexes[j]); |
| 364 | Trigger_rooms[j] = Scrpt_GetTriggerRoom(Trigger_indexes[j]); |
| 365 | } |
| 366 | |
| 367 | // Do Sound Index lookups |
| 368 | for (j = 0; j < NUM_SOUND_NAMES; j++) |
| 369 | Sound_indexes[j] = Scrpt_FindSoundName(Sound_names[j]); |
| 370 | |
| 371 | // Do Texture Index lookups |
| 372 | for (j = 0; j < NUM_TEXTURE_NAMES; j++) |
| 373 | Texture_indexes[j] = Scrpt_FindTextureName(Texture_names[j]); |
| 374 | |
| 375 | // Do Path Index lookups |
| 376 | for (j = 0; j < NUM_PATH_NAMES; j++) |
| 377 | Path_indexes[j] = Scrpt_FindPathName(Path_names[j]); |
| 378 | |
| 379 | // Do Matcen Index lookups |
| 380 | for (j = 0; j < NUM_MATCEN_NAMES; j++) |
| 381 | Matcen_indexes[j] = Scrpt_FindMatcenName(Matcen_names[j]); |
| 382 | |
| 383 | // Do Goal Index lookups |
| 384 | for (j = 0; j < NUM_GOAL_NAMES; j++) |
| 385 | Goal_indexes[j] = Scrpt_FindLevelGoalName(Goal_names[j]); |
| 386 | |
| 387 | // Do Message Name lookups |
| 388 | for (j = 0; j < NUM_MESSAGE_NAMES; j++) |
| 389 | Message_strings[j] = GetMessage(Message_names[j]); |
| 390 |
nothing calls this directly
no test coverage detected