36 lines
643 B
C
Raw Normal View History

2022-06-10 21:59:57 -04:00
#include <libreborn/libreborn.h>
2022-06-25 17:30:08 -04:00
#include <mods/init/init.h>
2020-12-02 18:18:49 -05:00
2021-11-13 23:29:48 -05:00
#include <media-layer/core.h>
2020-12-02 18:18:49 -05:00
__attribute__((constructor)) static void init() {
2021-11-13 23:29:48 -05:00
media_ensure_loaded();
2021-01-27 11:13:06 -05:00
run_tests();
2021-11-13 23:29:48 -05:00
init_version();
2020-12-02 18:18:49 -05:00
init_compat();
2021-06-17 17:32:24 -04:00
#ifdef MCPI_SERVER_MODE
2020-12-02 18:18:49 -05:00
init_server();
2021-06-27 22:16:37 -04:00
#else
init_multiplayer();
2021-09-11 23:18:12 -04:00
init_sound();
2020-12-02 18:18:49 -05:00
init_input();
2021-06-28 22:59:24 -04:00
init_sign();
2021-08-05 21:00:41 -04:00
init_creative();
2020-12-02 18:18:49 -05:00
init_camera();
2021-06-19 19:07:09 -04:00
init_touch();
2020-12-02 18:18:49 -05:00
init_textures();
init_atlas();
2021-09-11 23:18:12 -04:00
#endif
init_game_mode();
init_misc();
init_death();
init_options();
2021-02-16 12:26:40 -05:00
init_chat();
2022-07-10 10:37:19 -04:00
init_bucket();
2021-06-17 17:32:24 -04:00
init_home();
#ifndef MCPI_SERVER_MODE
2021-11-13 23:29:48 -05:00
init_benchmark();
#endif
2021-06-17 17:32:24 -04:00
}