Replaces string literal for BaseGameOverrides with const variable.

This commit is contained in:
Christopher Leggett 2022-08-01 23:16:16 -04:00
parent 480053dfaa
commit bb8152b376
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -10,6 +10,8 @@
#include "Enhancements/savestates.h"
#include "Enhancements/randomizer/randomizer.h"
const std::string customMessageTableID = "BaseGameOverrides";
class OTRGlobals
{
public:

View File

@ -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));