minecraft-pi-reborn/mods/src/init/init.cpp

41 lines
775 B
C++
Raw Permalink Normal View History

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