Move logic

This commit is contained in:
Christian Semmler 2025-08-10 19:28:13 -07:00
parent 74b9a425df
commit bc3205d091
3 changed files with 11 additions and 6 deletions

View File

@ -963,15 +963,17 @@ MxResult IsleApp::SetupWindow()
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to open SDL_IOStream for icon: %s", SDL_GetError());
}
if (!SetupLegoOmni()) {
return FAILURE;
}
GameState()->SetSavePath(m_savePath);
if (VerifyFilesystem() != SUCCESS) {
return FAILURE;
}
if (!SetupLegoOmni()) {
return FAILURE;
}
Lego()->LoadSiLoader();
DetectGameVersion();
GameState()->SerializePlayersInfo(LegoStorage::c_read);

View File

@ -208,6 +208,7 @@ class LegoOmni : public MxOmni {
void SetVersion10(MxBool p_version10) { m_version10 = p_version10; }
MxBool IsVersion10() { return m_version10; }
LEGO1_EXPORT void LoadSiLoader();
// SYNTHETIC: LEGO1 0x10058b30
// SYNTHETIC: BETA10 0x1008f8d0

View File

@ -354,9 +354,6 @@ MxResult LegoOmni::Create(MxOmniCreateParam& p_param)
else {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to create MxTransitionManager");
}
Extension<SiLoader>::Call(Load);
done:
return result;
// LINE: BETA10 0x1008e35d
@ -728,3 +725,8 @@ void LegoOmni::Resume()
MxOmni::Resume();
SetAppCursor(e_cursorArrow);
}
void LegoOmni::LoadSiLoader()
{
Extension<SiLoader>::Call(Load);
}