From 323a2ee0e7a4c767d80535f2f0e3a8036124da05 Mon Sep 17 00:00:00 2001 From: Misha Date: Sat, 24 Jun 2023 20:47:03 +0300 Subject: [PATCH] constructor and some methods are matching --- LEGO1/legobackgroundcolor.cpp | 6 ++++-- LEGO1/mxbackgroundcolor.h | 2 -- isle.mak | 34 ++++++++++++++++++++++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/LEGO1/legobackgroundcolor.cpp b/LEGO1/legobackgroundcolor.cpp index 1667592e..e7198a41 100644 --- a/LEGO1/legobackgroundcolor.cpp +++ b/LEGO1/legobackgroundcolor.cpp @@ -11,8 +11,10 @@ LegoBackgroundColor::LegoBackgroundColor(const char* name, const char* colorStri } - +// OFFSET: LEGO1 0x1003c070 void LegoBackgroundColor::SetColorString(const char* colorString) { - + m_colorString.operator=(colorString); + m_colorString.ToLowerCase(); + // WIP } \ No newline at end of file diff --git a/LEGO1/mxbackgroundcolor.h b/LEGO1/mxbackgroundcolor.h index f7786dd9..1c611b55 100644 --- a/LEGO1/mxbackgroundcolor.h +++ b/LEGO1/mxbackgroundcolor.h @@ -11,9 +11,7 @@ class MxBackgroundColor virtual void SetColorString(const char* colorString); protected: MxString m_name; - short m_unknown; MxString m_colorString; - short m_unknown2; }; diff --git a/isle.mak b/isle.mak index 78b41308..92c5d82e 100644 --- a/isle.mak +++ b/isle.mak @@ -143,7 +143,9 @@ LINK32_OBJS= \ "$(INTDIR)\mxstring.obj" \ "$(INTDIR)\mxtimer.obj" \ "$(INTDIR)\mxvideoparam.obj" \ - "$(INTDIR)\mxvideoparamflags.obj" + "$(INTDIR)\mxvideoparamflags.obj" \ + "$(INTDIR)\mxbackgroundcolor.obj" \ + "$(INTDIR)\legobackgroundcolor.obj" ".\Release\LEGO1.DLL" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< @@ -259,7 +261,9 @@ LINK32_OBJS= \ "$(INTDIR)\mxstring.obj" \ "$(INTDIR)\mxtimer.obj" \ "$(INTDIR)\mxvideoparam.obj" \ - "$(INTDIR)\mxvideoparamflags.obj" + "$(INTDIR)\mxvideoparamflags.obj" \ + "$(INTDIR)\mxbackgroundcolor.obj" \ + "$(INTDIR)\legobackgroundcolor.obj" ".\Debug\LEGO1.DLL" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< @@ -817,6 +821,32 @@ DEP_CPP_MXATO=\ $(CPP) $(CPP_PROJ) $(SOURCE) +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\LEGO1\mxbackgroundcolor.cpp +DEP_CPP_MXATO=\ + ".\LEGO1\mxbackgroundcolor.h"\ + + +"$(INTDIR)\mxbackgroundcolor.obj" : $(SOURCE) $(DEP_CPP_MXATO) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + +# End Source File +################################################################################ +# Begin Source File + +SOURCE=.\LEGO1\legobackgroundcolor.cpp +DEP_CPP_MXATO=\ + ".\LEGO1\legobackgroundcolor.h"\ + + +"$(INTDIR)\legobackgroundcolor.obj" : $(SOURCE) $(DEP_CPP_MXATO) "$(INTDIR)" + $(CPP) $(CPP_PROJ) $(SOURCE) + + # End Source File # End Target ################################################################################