void game_init(void) { kernel_init(); register_triggers(); register_xmas(); register_nr(); register_cr(); register_jsreport(); register_races(); register_spells(); register_names(); register_resources(); register_buildings(); register_itemfunctions(); #if MUSEUM_MODULE register_museum(); #endif #if ARENA_MODULE register_arena(); #endif wormholes_register(); register_itemtypes(); #ifdef USE_LIBXML2 register_xmlreader(); #endif register_attributes(); register_gmcmd(); chaos_register(); }
static _mali_osk_errcode_t mali_kernel_subsystem_core_setup(mali_kernel_subsystem_identifier id) { mali_subsystem_core_id = id; /* Register our own resources */ MALI_CHECK_NO_ERROR(_mali_kernel_core_register_resource_handler(MEM_VALIDATION, mali_kernel_core_resource_mem_validation)); /* parse the arch resource definition and tell all the subsystems */ /* this is why the core subsystem has to be specified last in the subsystem array */ MALI_CHECK_NO_ERROR(_mali_osk_resources_init(&arch_configuration, &num_resources)); MALI_CHECK_NO_ERROR(register_resources(&arch_configuration, num_resources)); /* resource parsing succeeded and the subsystem have corretly accepted their resources */ MALI_SUCCESS; }