mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 17:34:05 +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(LegoBuildingManager, 0x30)
|
||||
|
||||
// GLOBAL: LEGO1 0x100f37c8
|
||||
char* LegoBuildingManager::g_customizeAnimFile = NULL;
|
||||
|
||||
// GLOBAL: LEGO1 0x100f37cc
|
||||
int g_buildingManagerConfig = 1;
|
||||
|
||||
@@ -41,6 +44,25 @@ void LegoBuildingManager::FUN_1002fb30()
|
||||
// TODO
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1002ff90
|
||||
void LegoBuildingManager::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 0x10030220
|
||||
MxResult LegoBuildingManager::Tickle()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user