Hyphenate Game Mode Mod

This commit is contained in:
TheBrokenRail 2021-06-28 17:00:29 -04:00
parent 053bf4aa5f
commit 73f900f8b4
5 changed files with 9 additions and 9 deletions

View File

@ -29,8 +29,8 @@ endif()
add_library(camera SHARED src/camera/camera.cpp)
target_link_libraries(camera reborn media-layer-core)
add_library(game_mode SHARED src/game_mode/game_mode.c src/game_mode/game_mode.cpp)
target_link_libraries(game_mode reborn)
add_library(game-mode SHARED src/game-mode/game-mode.c src/game-mode/game-mode.cpp)
target_link_libraries(game-mode reborn)
add_library(input SHARED src/input/input.c src/input/input.cpp)
target_link_libraries(input reborn feature media-layer-core chat)
@ -63,7 +63,7 @@ add_library(test SHARED src/test/test.c)
target_link_libraries(test reborn home)
add_library(init SHARED src/init/init.c)
target_link_libraries(init compat game_mode camera input misc death options touch textures chat home version test)
target_link_libraries(init compat game-mode camera input misc death options touch textures chat home version test)
if(MCPI_SERVER_MODE)
target_link_libraries(init server)
else()
@ -71,7 +71,7 @@ else()
endif()
## Install Mods
install(TARGETS init compat readdir feature override game_mode camera input misc death options touch textures chat home version test DESTINATION "${MCPI_INSTALL_DIR}/mods")
install(TARGETS init compat readdir feature override game-mode camera input misc death options touch textures chat home version test DESTINATION "${MCPI_INSTALL_DIR}/mods")
if(MCPI_SERVER_MODE)
install(TARGETS server DESTINATION "${MCPI_INSTALL_DIR}/mods")
else()

View File

@ -1,2 +1,2 @@
# ``game_mode`` Mod
# ``game-mode`` Mod
This mod implements Survival Mode and dynamic game-mode switching.

View File

@ -1,6 +1,6 @@
#include <libreborn/libreborn.h>
#include "game_mode.h"
#include "game-mode.h"
#include "../init/init.h"
#include <libreborn/minecraft.h>
@ -54,4 +54,4 @@ void init_game_mode() {
// Init C++
_init_game_mode_cpp();
}
}

View File

@ -1,6 +1,6 @@
#include <libreborn/libreborn.h>
#include "game_mode.h"
#include "game-mode.h"
#include <libreborn/minecraft.h>
@ -55,4 +55,4 @@ void _init_game_mode_cpp() {
// Make The SimpleChooseLevelScreen Back Button Go To SelectWorldScreen Instead Of StartMenuScreen
unsigned char simple_choose_level_screen_back_button_patch[4] = {0x05, 0x10, 0xa0, 0xe3}; // "mov r1, #0x5"
patch((void *) 0x31144, simple_choose_level_screen_back_button_patch);
}
}