add fixme + rename MxStringVariable functions

This commit is contained in:
Misha 2023-06-28 18:22:35 +03:00
parent a883f37b9d
commit 6879f30e79
3 changed files with 10 additions and 9 deletions

View file

@ -17,7 +17,7 @@ LegoBackgroundColor::LegoBackgroundColor(const char *name, const char *colorStri
void LegoBackgroundColor::SetColorString(const char *colorString) void LegoBackgroundColor::SetColorString(const char *colorString)
{ {
m_name = colorString; m_name = colorString;
m_colorString.ToLowerCase(); m_string.ToLowerCase();
float converted_r; float converted_r;
float converted_b; float converted_b;

View file

@ -1,22 +1,23 @@
#include "MxStringVariable.h" #include "MxStringVariable.h"
#include "mxstring.h" #include "mxstring.h"
//FIXME: Figure out what exactly this class is used for. It is used in LegoGameState::LegoGameState when loading the background color, and for loading the "fsmovie" variable
// OFFSET: LEGO1 0x1003bec0 // OFFSET: LEGO1 0x1003bec0
MxStringVariable::~MxStringVariable() MxStringVariable::~MxStringVariable()
{ {
delete &m_colorString; delete &m_string;
delete &m_name; delete &m_name;
} }
// OFFSET: LEGO1 0x1003bea0 // OFFSET: LEGO1 0x1003bea0
MxString *MxStringVariable::GetColorString() MxString *MxStringVariable::GetString()
{ {
return &m_colorString; return &m_string;
} }
// OFFSET: LEGO1 0x1003beb0 // OFFSET: LEGO1 0x1003beb0
void MxStringVariable::SetColorString(const char *colorString) void MxStringVariable::SetString(const char *colorString)
{ {
m_colorString = colorString; m_string = colorString;
} }

View file

@ -8,13 +8,13 @@ class MxStringVariable
public: public:
__declspec(dllexport) MxStringVariable(const char *, const char *); __declspec(dllexport) MxStringVariable(const char *, const char *);
MxStringVariable() {} MxStringVariable() {}
virtual MxString *GetColorString(); virtual MxString *GetString();
virtual void SetColorString(const char *colorString); virtual void SetString(const char *colorString);
virtual ~MxStringVariable(); virtual ~MxStringVariable();
protected: protected:
MxString m_name; MxString m_name;
MxString m_colorString; MxString m_string;
}; };
#endif // MXSTRINGVARIABLE_H #endif // MXSTRINGVARIABLE_H