From 73f900f8b4bb10fbc539da7f2d860ad23fc0f2d7 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 28 Jun 2021 17:00:29 -0400 Subject: [PATCH] Hyphenate Game Mode Mod --- mods/CMakeLists.txt | 8 ++++---- mods/src/{game_mode => game-mode}/README.md | 2 +- mods/src/{game_mode/game_mode.c => game-mode/game-mode.c} | 4 ++-- .../{game_mode/game_mode.cpp => game-mode/game-mode.cpp} | 4 ++-- mods/src/{game_mode/game_mode.h => game-mode/game-mode.h} | 0 5 files changed, 9 insertions(+), 9 deletions(-) rename mods/src/{game_mode => game-mode}/README.md (77%) rename mods/src/{game_mode/game_mode.c => game-mode/game-mode.c} (98%) rename mods/src/{game_mode/game_mode.cpp => game-mode/game-mode.cpp} (99%) rename mods/src/{game_mode/game_mode.h => game-mode/game-mode.h} (100%) diff --git a/mods/CMakeLists.txt b/mods/CMakeLists.txt index 3455e88..9056a5e 100644 --- a/mods/CMakeLists.txt +++ b/mods/CMakeLists.txt @@ -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() diff --git a/mods/src/game_mode/README.md b/mods/src/game-mode/README.md similarity index 77% rename from mods/src/game_mode/README.md rename to mods/src/game-mode/README.md index c3268bf..eaaf2ac 100644 --- a/mods/src/game_mode/README.md +++ b/mods/src/game-mode/README.md @@ -1,2 +1,2 @@ -# ``game_mode`` Mod +# ``game-mode`` Mod This mod implements Survival Mode and dynamic game-mode switching. diff --git a/mods/src/game_mode/game_mode.c b/mods/src/game-mode/game-mode.c similarity index 98% rename from mods/src/game_mode/game_mode.c rename to mods/src/game-mode/game-mode.c index d29f738..359ddf7 100644 --- a/mods/src/game_mode/game_mode.c +++ b/mods/src/game-mode/game-mode.c @@ -1,6 +1,6 @@ #include -#include "game_mode.h" +#include "game-mode.h" #include "../init/init.h" #include @@ -54,4 +54,4 @@ void init_game_mode() { // Init C++ _init_game_mode_cpp(); -} \ No newline at end of file +} diff --git a/mods/src/game_mode/game_mode.cpp b/mods/src/game-mode/game-mode.cpp similarity index 99% rename from mods/src/game_mode/game_mode.cpp rename to mods/src/game-mode/game-mode.cpp index bf67ef2..81dceb6 100644 --- a/mods/src/game_mode/game_mode.cpp +++ b/mods/src/game-mode/game-mode.cpp @@ -1,6 +1,6 @@ #include -#include "game_mode.h" +#include "game-mode.h" #include @@ -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); -} \ No newline at end of file +} diff --git a/mods/src/game_mode/game_mode.h b/mods/src/game-mode/game-mode.h similarity index 100% rename from mods/src/game_mode/game_mode.h rename to mods/src/game-mode/game-mode.h