mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
fix Isle::SetupLegoOmni
This commit is contained in:
parent
458f529cdb
commit
ac6a489f84
@ -252,16 +252,18 @@ void Isle::SetupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers,
|
|||||||
// OFFSET: ISLE 0x4013b0
|
// OFFSET: ISLE 0x4013b0
|
||||||
BOOL Isle::SetupLegoOmni()
|
BOOL Isle::SetupLegoOmni()
|
||||||
{
|
{
|
||||||
|
BOOL result = FALSE;
|
||||||
char mediaPath[256];
|
char mediaPath[256];
|
||||||
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, sizeof(mediaPath));
|
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, sizeof(mediaPath));
|
||||||
|
|
||||||
if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
|
BOOL failure = Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) == FAILURE;
|
||||||
|
if (!failure) {
|
||||||
VariableTable()->SetVariable("ACTOR_01", "");
|
VariableTable()->SetVariable("ACTOR_01", "");
|
||||||
TickleManager()->vtable1c(VideoManager(), 10);
|
TickleManager()->vtable1c(VideoManager(), 10);
|
||||||
return TRUE;
|
result = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: ISLE 0x402e80
|
// OFFSET: ISLE 0x402e80
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user