Skip to content

Commit

Permalink
Replaces string literal for BaseGameOverrides with const variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
leggettc18 committed Aug 2, 2022
1 parent 480053d commit bb8152b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
} else {
textId = TEXT_GS_FREEZE;
}
messageEntry = CustomMessageManager::Instance->RetrieveMessage("BaseGameOverrides", textId);
messageEntry = CustomMessageManager::Instance->RetrieveMessage(customMessageTableID, textId);
}
}
if (messageEntry.textBoxType != -1) {
Expand Down
2 changes: 2 additions & 0 deletions soh/soh/OTRGlobals.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "Enhancements/savestates.h"
#include "Enhancements/randomizer/randomizer.h"

const std::string customMessageTableID = "BaseGameOverrides";

class OTRGlobals
{
public:
Expand Down
2 changes: 0 additions & 2 deletions soh/soh/z_message_OTR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ extern "C" MessageTableEntry* sFraMessageEntryTablePtr;
extern "C" MessageTableEntry* sStaffMessageEntryTablePtr;
//extern "C" MessageTableEntry* _message_0xFFFC_nes;

const std::string customMessageTableID = "BaseGameOverrides";

MessageTableEntry* OTRMessage_LoadTable(const char* filePath, bool isNES) {
auto file = std::static_pointer_cast<Ship::Text>(OTRGlobals::Instance->context->GetResourceManager()->LoadResource(filePath));

Expand Down

0 comments on commit bb8152b

Please sign in to comment.