MxRegionListCursor edit to prevent accuracy drop

This commit is contained in:
disinvite 2023-12-07 12:07:34 -05:00
parent 25936af7f4
commit 5e68e038f4

View File

@ -29,11 +29,28 @@ class MxRegionList : public MxPtrList<MxRegionTopBottom> {
// VTABLE: LEGO1 0x100dcba0
// class MxListCursor<MxRegionTopBottom *>
// TODO: MxRegionListCursor should probably extend MxPtrListCursor. Doing this has
// drastically reduced the match percentage for MxRegion::vtable18, so we will replicate
// the previous cursor hierarchy with this dummy class for now.
template <class T>
class _ListCursorDummy : public MxListCursor<T> {
public:
_ListCursorDummy(MxList<T>* p_list) : MxListCursor<T>(p_list){};
};
// VTABLE: LEGO1 0x100dcb88
class MxRegionListCursor : public _ListCursorDummy<MxRegionTopBottom*> {
public:
MxRegionListCursor(MxList<MxRegionTopBottom*>* p_list) : _ListCursorDummy<MxRegionTopBottom*>(p_list){};
};
/*
class MxRegionListCursor : public MxPtrListCursor<MxRegionTopBottom> {
public:
MxRegionListCursor(MxRegionList* p_list) : MxPtrListCursor<MxRegionTopBottom>(p_list){};
MxRegionListCursor(MxRegionList* p_list) : MxPtrListCursor<MxRegionTopBottom>(p_list){};
};
*/
// VTABLE: LEGO1 0x100dcc40
// class MxCollection<MxRegionLeftRight *>