Skip to content

Commit

Permalink
Fix CI, address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschz committed Aug 17, 2024
1 parent 9964c99 commit c264fa3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
10 changes: 4 additions & 6 deletions LEGO1/lego/legoomni/include/legovideomanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ class LegoVideoManager : public MxVideoManager {
MxResult Tickle() override; // vtable+0x08
void Destroy() override; // vtable+0x18
MxResult Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS, MxBool p_createThread) override; // vtable+0x2c

MxPresenter* GetPresenterByActionObjectName(char* p_char);

MxResult RealizePalette(MxPalette*) override; // vtable+0x30
void UpdateView(MxU32 p_x, MxU32 p_y, MxU32 p_width, MxU32 p_height) override; // vtable+0x34
virtual MxPresenter* GetPresenterAt(MxS32 p_x, MxS32 p_y); // vtable+0x38
MxResult RealizePalette(MxPalette*) override; // vtable+0x30
void UpdateView(MxU32 p_x, MxU32 p_y, MxU32 p_width, MxU32 p_height) override; // vtable+0x34
virtual MxPresenter* GetPresenterAt(MxS32 p_x, MxS32 p_y); // vtable+0x38

// FUNCTION: LEGO1 0x1007ab10
virtual LegoPhonemeList* GetPhonemeList() { return m_phonemeRefList; } // vtable+0x3c

void SetSkyColor(float p_red, float p_green, float p_blue);
void OverrideSkyColor(MxBool p_shouldOverride);
MxResult ResetPalette(MxBool p_ignoreSkyColor);
MxPresenter* GetPresenterByActionObjectName(const char* p_char);

void FUN_1007c520();

Expand Down
8 changes: 4 additions & 4 deletions LEGO1/lego/legoomni/src/race/legoracemap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ LegoRaceMap::~LegoRaceMap()

// GLOBAL: LEGO1 0x1010208c
// STRING: LEGO1 0x10101f88
const char* g_MAP_LOCATOR = "MAP_LOCATOR";
const char* g_mapLocator = "MAP_LOCATOR";

// GLOBAL: LEGO1 0x10102090
// STRING: LEGO1 0x10101f78
const char* g_MAP_GEOMETRY = "MAP_GEOMETRY";
const char* g_mapGeometry = "MAP_GEOMETRY";

// FUNCTION: LEGO1 0x1005d310
// FUNCTION: BETA10 0x100ca543
void LegoRaceMap::ParseAction(char* p_extra)
{
char value[256];

if (KeyValueStringParse(value, g_MAP_LOCATOR, p_extra)) {
if (KeyValueStringParse(value, g_mapLocator, p_extra)) {
// variable name verified by BETA10 0x100ca5ac
MxStillPresenter* p = (MxStillPresenter*) VideoManager()->GetPresenterByActionObjectName(value);

Expand All @@ -51,7 +51,7 @@ void LegoRaceMap::ParseAction(char* p_extra)
m_stillPresenter = p;
}

if (KeyValueStringParse(value, g_MAP_GEOMETRY, p_extra)) {
if (KeyValueStringParse(value, g_mapGeometry, p_extra)) {
char* token = strtok(value, g_parseExtraTokens);
if (token != NULL) {
m_unk0x14 = atof(token);
Expand Down
6 changes: 3 additions & 3 deletions LEGO1/lego/legoomni/src/video/legovideomanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ MxPresenter* LegoVideoManager::GetPresenterAt(MxS32 p_x, MxS32 p_y)

// FUNCTION: LEGO1 0x1007c180
// FUNCTION: BETA10 0x100d6df4
MxPresenter* LegoVideoManager::GetPresenterByActionObjectName(char *p_actionObjectName) {

MxPresenter* LegoVideoManager::GetPresenterByActionObjectName(const char* p_actionObjectName)
{
MxPresenterListCursor cursor(m_presenters);
MxPresenter* presenter;

while (true) {
while (TRUE) {
if (!cursor.Prev(presenter)) {
return NULL;
}
Expand Down
4 changes: 0 additions & 4 deletions LEGO1/omni/include/mxpresenterlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class MxPresenterList : public MxPtrList<MxPresenter> {
// MxPresenterList::`scalar deleting destructor'
};

DECOMP_SIZE_ASSERT(MxPresenterList, 0x18)

// VTABLE: LEGO1 0x100d6488
// class MxListCursor<MxPresenter *>

Expand All @@ -39,8 +37,6 @@ class MxPresenterListCursor : public MxPtrListCursor<MxPresenter> {
MxPresenterListCursor(MxPresenterList* p_list) : MxPtrListCursor<MxPresenter>(p_list) {}
};

DECOMP_SIZE_ASSERT(MxPresenterListCursor, 0x10)

// VTABLE: LEGO1 0x100d6350
// class MxCollection<MxPresenter *>

Expand Down
1 change: 1 addition & 0 deletions tools/ncc/skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ i_activity: "Allow original naming from beta"
i_actor: "Allow original naming from beta"
score: "Allow original naming from beta"
c_LOCATIONS_NUM: "Allow original naming from beta"
m_Map_Ctl: "Allow original naming from beta"

0 comments on commit c264fa3

Please sign in to comment.