mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
Move logic
This commit is contained in:
parent
74b9a425df
commit
bc3205d091
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user