mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
CustomizeAnimFile MxVariable (#584)
* CustomizeAnimFile MxVariable * Fixes * Remove returns * Add size asserts --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user