From 798f235946e9b4564741101f524af01a329e8556 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 6 Jan 2024 12:52:14 -0500 Subject: [PATCH] Remove unnecessary COMPAT_CONST use --- LEGO1/legogamestate.cpp | 4 ++-- LEGO1/legogamestate.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/legogamestate.cpp b/LEGO1/legogamestate.cpp index d1706c1e..23e04601 100644 --- a/LEGO1/legogamestate.cpp +++ b/LEGO1/legogamestate.cpp @@ -219,7 +219,7 @@ MxBool ROIHandlerFunction(char* p_input, char* p_output, MxU32 p_copyLen) } // FUNCTION: LEGO1 0x1003bbb0 -LegoState* LegoGameState::GetState(COMPAT_CONST char* p_stateName) +LegoState* LegoGameState::GetState(const char* p_stateName) { for (MxS32 i = 0; i < m_stateCount; ++i) if (m_stateArray[i]->IsA(p_stateName)) @@ -228,7 +228,7 @@ LegoState* LegoGameState::GetState(COMPAT_CONST char* p_stateName) } // FUNCTION: LEGO1 0x1003bc00 -LegoState* LegoGameState::CreateState(COMPAT_CONST char* p_stateName) +LegoState* LegoGameState::CreateState(const char* p_stateName) { LegoState* newState = (LegoState*) ObjectFactory()->Create(p_stateName); RegisterState(newState); diff --git a/LEGO1/legogamestate.h b/LEGO1/legogamestate.h index 656b990c..5f62b107 100644 --- a/LEGO1/legogamestate.h +++ b/LEGO1/legogamestate.h @@ -27,8 +27,8 @@ class LegoGameState { __declspec(dllexport) void SerializeScoreHistory(MxS16 p_flags); __declspec(dllexport) void SetSavePath(char*); - LegoState* GetState(COMPAT_CONST char* p_stateName); - LegoState* CreateState(COMPAT_CONST char* p_stateName); + LegoState* GetState(const char* p_stateName); + LegoState* CreateState(const char* p_stateName); void GetFileSavePath(MxString* p_outPath, MxULong p_slotn); void FUN_1003a720(MxU32);