Skip to content

Commit

Permalink
Adapts this branch for cmake building.
Browse files Browse the repository at this point in the history
  • Loading branch information
leggettc18 committed Aug 9, 2022
1 parent 59baf24 commit e63d84b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 8 deletions.
15 changes: 15 additions & 0 deletions soh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ set(Header_Files__soh__Enhancements__randomizer__3drando
)
source_group("Header Files\\soh\\Enhancements\\randomizer\\3drando" FILES ${Header_Files__soh__Enhancements__randomizer__3drando})

set(Header_Files__soh__Enhancements__custom_message
"soh/Enhancements/custom-message/CustomMessageTypes.h"
"soh/Enhancements/custom-message/CustomMessageManager.h"
)

source_group("Header Files\\soh\\Enhancements\\custom-message" FILES ${Header_Files__soh__Enhancements__custom_message})

set(Source_Files__soh
"soh/GbiWrap.cpp"
"soh/OTRAudio.h"
Expand Down Expand Up @@ -326,6 +333,12 @@ set(Source_Files__soh__Enhancements__randomizer__3drando__location_access
)
source_group("Source Files\\soh\\Enhancements\\randomizer\\3drando\\location_access" FILES ${Source_Files__soh__Enhancements__randomizer__3drando__location_access})

set(Source_Files__soh__Enhancements__custom_message
"soh/Enhancements/custom-message/CustomMessageManager.cpp"
)

source_group("Source Files\\soh\\Enhancements\\custom-message" FILES ${Source_Files__soh__Enhancements__custom_message})

set(Source_Files__src__boot
"src/boot/assert.c"
"src/boot/boot_main.c"
Expand Down Expand Up @@ -1534,6 +1547,7 @@ set(ALL_FILES
${Header_Files__soh__Enhancements__debugger}
${Header_Files__soh__Enhancements__randomizer}
${Header_Files__soh__Enhancements__randomizer__3drando}
${Header_Files__soh__Enhancements__custom_message}
${Source_Files__soh}
${Source_Files__soh__Enhancements}
${Source_Files__soh__Enhancements__cosmetics}
Expand All @@ -1542,6 +1556,7 @@ set(ALL_FILES
${Source_Files__soh__Enhancements__randomizer__3drando}
${Source_Files__soh__Enhancements__randomizer__3drando__hint_list}
${Source_Files__soh__Enhancements__randomizer__3drando__location_access}
${Source_Files__soh__Enhancements__custom_message}
${Source_Files__src__boot}
${Source_Files__src__buffers}
${Source_Files__src__code}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <unordered_map>
#include "z64item.h"
#include "../../../include/z64item.h"

#undef MESSAGE_END

Expand Down
4 changes: 2 additions & 2 deletions soh/soh/Enhancements/randomizer/randomizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "3drando/rando_main.hpp"
#include <soh/Enhancements/debugger/ImGuiHelpers.h>
#include "Lib/ImGui/imgui_internal.h"
#include <soh/Enhancements/custom_message/CustomMessageManager.h>
#include <soh/Enhancements/custom_message/CustomMessageTypes.h>
#include <soh/Enhancements/custom-message/CustomMessageManager.h>
#include <soh/Enhancements/custom-message/CustomMessageTypes.h>

using json = nlohmann::json;
using namespace std::literals::string_literals;
Expand Down
4 changes: 2 additions & 2 deletions soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "macros.h"
#include <Utils/StringHelper.h>
#include "Hooks.h"
#include <soh/Enhancements/custom_message/CustomMessageManager.h>
#include <soh/Enhancements/custom-message/CustomMessageManager.h>

#ifdef __APPLE__
#include <SDL_scancode.h>
Expand All @@ -52,7 +52,7 @@
#endif

#include <Audio.h>
#include <soh/Enhancements/custom_message/CustomMessageTypes.h>
#include <soh/Enhancements/custom-message/CustomMessageTypes.h>
#include <functions.h>

OTRGlobals* OTRGlobals::Instance;
Expand Down
4 changes: 2 additions & 2 deletions soh/soh/z_message_OTR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "vt.h"
#include <Text.h>
#include <message_data_static.h>
#include <soh/Enhancements/custom_message/CustomMessageManager.h>
#include <soh/Enhancements/custom_message/CustomMessageTypes.h>
#include <soh/Enhancements/custom-message/CustomMessageManager.h>
#include <soh/Enhancements/custom-message/CustomMessageTypes.h>

extern "C" MessageTableEntry* sNesMessageEntryTablePtr;
extern "C" MessageTableEntry* sGerMessageEntryTablePtr;
Expand Down
2 changes: 1 addition & 1 deletion soh/src/overlays/actors/ovl_player_actor/z_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "objects/gameplay_keep/gameplay_keep.h"
#include "objects/object_link_child/object_link_child.h"
#include "textures/icon_item_24_static/icon_item_24_static.h"
#include "../../../../soh/Enhancements/custom_message/CustomMessageTypes.h"
#include <soh/Enhancements/custom-message/CustomMessageTypes.h>

typedef struct {
/* 0x00 */ u8 itemId;
Expand Down

0 comments on commit e63d84b

Please sign in to comment.