100% match of many functions in the LegoGameState::Save codepath (#86)

* Only include decomps

* One more function

* Add offset to endOfVariables

* Remove leftover header

* Use undefined where applicable

* Fixes, refactorings

* Fixes

* Fix calling convention

* Added offset comment

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Mark Langen
2023-10-12 09:18:24 -07:00
committed by GitHub
parent 49ec7364c2
commit 91c3ed3e70
16 changed files with 489 additions and 40 deletions

View File

@@ -26,9 +26,9 @@ MxObjectFactory::MxObjectFactory()
}
// OFFSET: LEGO1 0x100b12c0
MxCore *MxObjectFactory::Create(const char *name)
MxCore *MxObjectFactory::Create(const char *p_name)
{
MxAtomId atom(name, LookupMode_Exact);
MxAtomId atom(p_name, LookupMode_Exact);
if (0) {
#define X(V) } else if (this->m_id##V == atom) { return new V;
@@ -40,6 +40,6 @@ MxCore *MxObjectFactory::Create(const char *name)
}
// OFFSET: LEGO1 0x100b1a30 STUB
void MxObjectFactory::vtable18(void *) {
void MxObjectFactory::Destroy(void *p_object) {
// FIXME
}