CustomizeAnimFile MxVariable (#584)

* CustomizeAnimFile MxVariable

* Fixes

* Remove returns

* Add size asserts

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
MS
2024-02-21 15:30:02 -05:00
committed by GitHub
parent 48cd648357
commit 761b120aee
9 changed files with 180 additions and 6 deletions

View File

@@ -2,6 +2,9 @@
DECOMP_SIZE_ASSERT(LegoPlantManager, 0x2c)
// GLOBAL: LEGO1 0x100f3188
char* LegoPlantManager::g_customizeAnimFile = NULL;
// FUNCTION: LEGO1 0x10026220
LegoPlantManager::LegoPlantManager()
{
@@ -32,6 +35,25 @@ void LegoPlantManager::FUN_100263a0(undefined4 p_und)
// TODO
}
// FUNCTION: LEGO1 0x10026be0
void LegoPlantManager::SetCustomizeAnimFile(const char* p_value)
{
if (g_customizeAnimFile != NULL) {
delete[] g_customizeAnimFile;
}
if (p_value != NULL) {
g_customizeAnimFile = new char[strlen(p_value) + 1];
if (g_customizeAnimFile != NULL) {
strcpy(g_customizeAnimFile, p_value);
}
}
else {
g_customizeAnimFile = NULL;
}
}
// STUB: LEGO1 0x10026e00
MxResult LegoPlantManager::Tickle()
{