mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 14:11:16 +00:00
Merge branch 'master' into badend
This commit is contained in:
commit
9967aca509
@ -119,25 +119,6 @@ struct InfocenterMapEntry {
|
|||||||
// SIZE 0x1d8
|
// SIZE 0x1d8
|
||||||
class Infocenter : public LegoWorld {
|
class Infocenter : public LegoWorld {
|
||||||
public:
|
public:
|
||||||
enum Cutscene {
|
|
||||||
e_noIntro = -1,
|
|
||||||
e_legoMovie,
|
|
||||||
e_mindscapeMovie,
|
|
||||||
e_introMovie,
|
|
||||||
e_outroMovie,
|
|
||||||
e_badEndMovie,
|
|
||||||
e_goodEndMovie
|
|
||||||
};
|
|
||||||
|
|
||||||
enum Character {
|
|
||||||
e_noCharacter = 0,
|
|
||||||
e_pepper,
|
|
||||||
e_mama,
|
|
||||||
e_papa,
|
|
||||||
e_nick,
|
|
||||||
e_laura
|
|
||||||
};
|
|
||||||
|
|
||||||
Infocenter();
|
Infocenter();
|
||||||
~Infocenter() override;
|
~Infocenter() override;
|
||||||
|
|
||||||
@ -180,7 +161,7 @@ class Infocenter : public LegoWorld {
|
|||||||
void UpdateFrameHot(MxBool p_display);
|
void UpdateFrameHot(MxBool p_display);
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
void PlayCutscene(Cutscene p_entityId, MxBool p_scale);
|
void PlayCutscene(IntroScript::Script p_entityId, MxBool p_scale);
|
||||||
void StopCutscene();
|
void StopCutscene();
|
||||||
|
|
||||||
void UpdateEnabledGlowControl(MxS32 p_x, MxS32 p_y);
|
void UpdateEnabledGlowControl(MxS32 p_x, MxS32 p_y);
|
||||||
@ -198,7 +179,7 @@ class Infocenter : public LegoWorld {
|
|||||||
MxS16 m_selectedCharacter; // 0xfc
|
MxS16 m_selectedCharacter; // 0xfc
|
||||||
InfocenterState* m_infocenterState; // 0x100
|
InfocenterState* m_infocenterState; // 0x100
|
||||||
LegoGameState::Area m_destLocation; // 0x104
|
LegoGameState::Area m_destLocation; // 0x104
|
||||||
Cutscene m_currentCutscene; // 0x108
|
IntroScript::Script m_currentCutscene; // 0x108
|
||||||
Radio m_radio; // 0x10c
|
Radio m_radio; // 0x10c
|
||||||
MxStillPresenter* m_dragPresenter; // 0x11c
|
MxStillPresenter* m_dragPresenter; // 0x11c
|
||||||
InfocenterMapEntry m_glowInfo[7]; // 0x120
|
InfocenterMapEntry m_glowInfo[7]; // 0x120
|
||||||
|
|||||||
@ -630,7 +630,6 @@ void MxTransitionManager::SetupCopyRect(LPDDSURFACEDESC p_ddsc)
|
|||||||
// Setup display surface
|
// Setup display surface
|
||||||
if ((m_waitIndicator->GetAction()->GetFlags() & MxDSAction::c_bit5) != 0) {
|
if ((m_waitIndicator->GetAction()->GetFlags() & MxDSAction::c_bit5) != 0) {
|
||||||
MxDisplaySurface* displaySurface = VideoManager()->GetDisplaySurface();
|
MxDisplaySurface* displaySurface = VideoManager()->GetDisplaySurface();
|
||||||
MxBool und = FALSE;
|
|
||||||
displaySurface->VTable0x2c(
|
displaySurface->VTable0x2c(
|
||||||
p_ddsc,
|
p_ddsc,
|
||||||
m_waitIndicator->GetBitmap(),
|
m_waitIndicator->GetBitmap(),
|
||||||
@ -639,8 +638,7 @@ void MxTransitionManager::SetupCopyRect(LPDDSURFACEDESC p_ddsc)
|
|||||||
m_waitIndicator->GetLocation().GetX(),
|
m_waitIndicator->GetLocation().GetX(),
|
||||||
m_waitIndicator->GetLocation().GetY(),
|
m_waitIndicator->GetLocation().GetY(),
|
||||||
m_waitIndicator->GetWidth(),
|
m_waitIndicator->GetWidth(),
|
||||||
m_waitIndicator->GetHeight(),
|
m_waitIndicator->GetHeight()
|
||||||
und
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -852,7 +852,7 @@ void LegoVideoManager::SetCursorBitmap(const CursorBitmap* p_cursorBitmap)
|
|||||||
m_cursorRect.bottom = p_cursorBitmap->height;
|
m_cursorRect.bottom = p_cursorBitmap->height;
|
||||||
m_cursorRect.right = p_cursorBitmap->width;
|
m_cursorRect.right = p_cursorBitmap->width;
|
||||||
|
|
||||||
m_cursorSurface = MxDisplaySurface::CreateCursorSurface(p_cursorBitmap);
|
m_cursorSurface = MxDisplaySurface::CreateCursorSurface(p_cursorBitmap, m_videoParam.GetPalette());
|
||||||
|
|
||||||
if (m_cursorSurface == NULL) {
|
if (m_cursorSurface == NULL) {
|
||||||
m_drawCursor = FALSE;
|
m_drawCursor = FALSE;
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
#include "credits_actions.h"
|
#include "credits_actions.h"
|
||||||
#include "helicopter.h"
|
#include "helicopter.h"
|
||||||
#include "infomain_actions.h"
|
#include "infomain_actions.h"
|
||||||
|
#include "intro_actions.h"
|
||||||
#include "jukebox.h"
|
#include "jukebox.h"
|
||||||
#include "jukebox_actions.h"
|
#include "jukebox_actions.h"
|
||||||
#include "legoact2.h"
|
#include "legoact2.h"
|
||||||
@ -128,13 +129,13 @@ InfomainScript::Script g_bricksterDialogue[2] = {
|
|||||||
// FUNCTION: LEGO1 0x1006ea20
|
// FUNCTION: LEGO1 0x1006ea20
|
||||||
Infocenter::Infocenter()
|
Infocenter::Infocenter()
|
||||||
{
|
{
|
||||||
m_selectedCharacter = e_noCharacter;
|
m_selectedCharacter = LegoActor::c_none;
|
||||||
m_dragPresenter = NULL;
|
m_dragPresenter = NULL;
|
||||||
m_infocenterState = NULL;
|
m_infocenterState = NULL;
|
||||||
m_frame = NULL;
|
m_frame = NULL;
|
||||||
m_destLocation = LegoGameState::e_undefined;
|
m_destLocation = LegoGameState::e_undefined;
|
||||||
m_currentInfomainScript = InfomainScript::c_noneInfomain;
|
m_currentInfomainScript = InfomainScript::c_noneInfomain;
|
||||||
m_currentCutscene = e_noIntro;
|
m_currentCutscene = IntroScript::c_noneIntro;
|
||||||
|
|
||||||
memset(&m_glowInfo, 0, sizeof(m_glowInfo));
|
memset(&m_glowInfo, 0, sizeof(m_glowInfo));
|
||||||
|
|
||||||
@ -312,19 +313,19 @@ MxLong Infocenter::HandleEndAction(MxEndActionNotificationParam& p_param)
|
|||||||
GameState()->SetActor(m_selectedCharacter);
|
GameState()->SetActor(m_selectedCharacter);
|
||||||
|
|
||||||
switch (m_selectedCharacter) {
|
switch (m_selectedCharacter) {
|
||||||
case e_pepper:
|
case LegoActor::c_pepper:
|
||||||
PlayAction(InfomainScript::c_avo901in_RunAnim);
|
PlayAction(InfomainScript::c_avo901in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_mama:
|
case LegoActor::c_mama:
|
||||||
PlayAction(InfomainScript::c_avo902in_RunAnim);
|
PlayAction(InfomainScript::c_avo902in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_papa:
|
case LegoActor::c_papa:
|
||||||
PlayAction(InfomainScript::c_avo903in_RunAnim);
|
PlayAction(InfomainScript::c_avo903in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_nick:
|
case LegoActor::c_nick:
|
||||||
PlayAction(InfomainScript::c_avo904in_RunAnim);
|
PlayAction(InfomainScript::c_avo904in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_laura:
|
case LegoActor::c_laura:
|
||||||
PlayAction(InfomainScript::c_avo905in_RunAnim);
|
PlayAction(InfomainScript::c_avo905in_RunAnim);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -350,23 +351,23 @@ MxLong Infocenter::HandleEndAction(MxEndActionNotificationParam& p_param)
|
|||||||
switch (m_infocenterState->m_state) {
|
switch (m_infocenterState->m_state) {
|
||||||
case InfocenterState::e_playCutscene:
|
case InfocenterState::e_playCutscene:
|
||||||
switch (m_currentCutscene) {
|
switch (m_currentCutscene) {
|
||||||
case e_legoMovie:
|
case IntroScript::c_Lego_Movie:
|
||||||
PlayCutscene(e_mindscapeMovie, FALSE);
|
PlayCutscene(IntroScript::c_Mindscape_Movie, FALSE);
|
||||||
return 1;
|
return 1;
|
||||||
case e_mindscapeMovie:
|
case IntroScript::c_Mindscape_Movie:
|
||||||
PlayCutscene(e_introMovie, TRUE);
|
PlayCutscene(IntroScript::c_Intro_Movie, TRUE);
|
||||||
return 1;
|
return 1;
|
||||||
case e_badEndMovie:
|
case IntroScript::c_BadEnd_Movie:
|
||||||
StopCutscene();
|
StopCutscene();
|
||||||
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
||||||
PlayAction(InfomainScript::c_tic092in_RunAnim);
|
PlayAction(InfomainScript::c_tic092in_RunAnim);
|
||||||
m_currentCutscene = e_noIntro;
|
m_currentCutscene = IntroScript::c_noneIntro;
|
||||||
return 1;
|
return 1;
|
||||||
case e_goodEndMovie:
|
case IntroScript::c_GoodEnd_Movie:
|
||||||
StopCutscene();
|
StopCutscene();
|
||||||
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
||||||
PlayAction(InfomainScript::c_tic089in_RunAnim);
|
PlayAction(InfomainScript::c_tic089in_RunAnim);
|
||||||
m_currentCutscene = e_noIntro;
|
m_currentCutscene = IntroScript::c_noneIntro;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -374,7 +375,7 @@ MxLong Infocenter::HandleEndAction(MxEndActionNotificationParam& p_param)
|
|||||||
StopCutscene();
|
StopCutscene();
|
||||||
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
||||||
PlayAction(InfomainScript::c_iic001in_RunAnim);
|
PlayAction(InfomainScript::c_iic001in_RunAnim);
|
||||||
m_currentCutscene = e_noIntro;
|
m_currentCutscene = IntroScript::c_noneIntro;
|
||||||
|
|
||||||
if (!m_infocenterState->HasRegistered()) {
|
if (!m_infocenterState->HasRegistered()) {
|
||||||
m_bookAnimationTimer = 1;
|
m_bookAnimationTimer = 1;
|
||||||
@ -385,17 +386,17 @@ MxLong Infocenter::HandleEndAction(MxEndActionNotificationParam& p_param)
|
|||||||
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
m_infocenterState->m_state = InfocenterState::e_welcomeAnimation;
|
||||||
|
|
||||||
switch (m_currentCutscene) {
|
switch (m_currentCutscene) {
|
||||||
case e_badEndMovie:
|
case IntroScript::c_BadEnd_Movie:
|
||||||
PlayAction(InfomainScript::c_tic092in_RunAnim);
|
PlayAction(InfomainScript::c_tic092in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_goodEndMovie:
|
case IntroScript::c_GoodEnd_Movie:
|
||||||
PlayAction(InfomainScript::c_tic089in_RunAnim);
|
PlayAction(InfomainScript::c_tic089in_RunAnim);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PlayAction(InfomainScript::c_iic001in_RunAnim);
|
PlayAction(InfomainScript::c_iic001in_RunAnim);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_currentCutscene = e_noIntro;
|
m_currentCutscene = IntroScript::c_noneIntro;
|
||||||
return 1;
|
return 1;
|
||||||
case InfocenterState::e_notRegistered:
|
case InfocenterState::e_notRegistered:
|
||||||
SetROIVisible(g_object2x4red, FALSE);
|
SetROIVisible(g_object2x4red, FALSE);
|
||||||
@ -412,7 +413,7 @@ MxLong Infocenter::HandleEndAction(MxEndActionNotificationParam& p_param)
|
|||||||
break;
|
break;
|
||||||
case InfocenterState::e_selectedCharacterAndDestination:
|
case InfocenterState::e_selectedCharacterAndDestination:
|
||||||
if (action->GetObjectId() == m_currentInfomainScript) {
|
if (action->GetObjectId() == m_currentInfomainScript) {
|
||||||
if (GameState()->GetCurrentAct() != LegoGameState::e_act3 && m_selectedCharacter != e_noCharacter) {
|
if (GameState()->GetCurrentAct() != LegoGameState::e_act3 && m_selectedCharacter != LegoActor::c_none) {
|
||||||
GameState()->SetActor(m_selectedCharacter);
|
GameState()->SetActor(m_selectedCharacter);
|
||||||
}
|
}
|
||||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||||
@ -462,7 +463,7 @@ void Infocenter::ReadyWorld()
|
|||||||
|
|
||||||
switch (m_infocenterState->m_state) {
|
switch (m_infocenterState->m_state) {
|
||||||
case InfocenterState::e_newState:
|
case InfocenterState::e_newState:
|
||||||
PlayCutscene(e_legoMovie, TRUE);
|
PlayCutscene(IntroScript::c_Lego_Movie, TRUE);
|
||||||
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
||||||
return;
|
return;
|
||||||
case InfocenterState::e_selectedSave:
|
case InfocenterState::e_selectedSave:
|
||||||
@ -525,7 +526,7 @@ void Infocenter::ReadyWorld()
|
|||||||
|
|
||||||
if (state && state->GetState() == LegoAct2State::c_badEnding) {
|
if (state && state->GetState() == LegoAct2State::c_badEnding) {
|
||||||
bg->Enable(TRUE);
|
bg->Enable(TRUE);
|
||||||
PlayCutscene(e_badEndMovie, TRUE);
|
PlayCutscene(IntroScript::c_BadEnd_Movie, TRUE);
|
||||||
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -570,14 +571,14 @@ void Infocenter::ReadyWorld()
|
|||||||
|
|
||||||
if (state && state->GetState() == Act3State::e_badEnding) {
|
if (state && state->GetState() == Act3State::e_badEnding) {
|
||||||
bg->Enable(TRUE);
|
bg->Enable(TRUE);
|
||||||
PlayCutscene(e_badEndMovie, TRUE);
|
PlayCutscene(IntroScript::c_BadEnd_Movie, TRUE);
|
||||||
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state && state->GetState() == Act3State::e_goodEnding) {
|
if (state && state->GetState() == Act3State::e_goodEnding) {
|
||||||
bg->Enable(TRUE);
|
bg->Enable(TRUE);
|
||||||
PlayCutscene(e_goodEndMovie, TRUE);
|
PlayCutscene(IntroScript::c_GoodEnd_Movie, TRUE);
|
||||||
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
m_infocenterState->m_state = InfocenterState::e_playCutscene;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -759,19 +760,19 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
|
|
||||||
switch (m_dragPresenter->GetAction()->GetObjectId()) {
|
switch (m_dragPresenter->GetAction()->GetObjectId()) {
|
||||||
case InfomainScript::c_PepperHot_Bitmap:
|
case InfomainScript::c_PepperHot_Bitmap:
|
||||||
m_selectedCharacter = e_pepper;
|
m_selectedCharacter = LegoActor::c_pepper;
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_MamaHot_Bitmap:
|
case InfomainScript::c_MamaHot_Bitmap:
|
||||||
m_selectedCharacter = e_mama;
|
m_selectedCharacter = LegoActor::c_mama;
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_PapaHot_Bitmap:
|
case InfomainScript::c_PapaHot_Bitmap:
|
||||||
m_selectedCharacter = e_papa;
|
m_selectedCharacter = LegoActor::c_papa;
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_NickHot_Bitmap:
|
case InfomainScript::c_NickHot_Bitmap:
|
||||||
m_selectedCharacter = e_nick;
|
m_selectedCharacter = LegoActor::c_nick;
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_LauraHot_Bitmap:
|
case InfomainScript::c_LauraHot_Bitmap:
|
||||||
m_selectedCharacter = e_laura;
|
m_selectedCharacter = LegoActor::c_laura;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -780,7 +781,7 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
|
|
||||||
switch (control->GetAction()->GetObjectId()) {
|
switch (control->GetAction()->GetObjectId()) {
|
||||||
case InfomainScript::c_Pepper_Ctl:
|
case InfomainScript::c_Pepper_Ctl:
|
||||||
if (m_selectedCharacter == e_pepper) {
|
if (m_selectedCharacter == LegoActor::c_pepper) {
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
PlayAction(InfomainScript::c_Pepper_All_Movie);
|
PlayAction(InfomainScript::c_Pepper_All_Movie);
|
||||||
@ -788,7 +789,7 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Mama_Ctl:
|
case InfomainScript::c_Mama_Ctl:
|
||||||
if (m_selectedCharacter == e_mama) {
|
if (m_selectedCharacter == LegoActor::c_mama) {
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
PlayAction(InfomainScript::c_Mama_All_Movie);
|
PlayAction(InfomainScript::c_Mama_All_Movie);
|
||||||
@ -796,7 +797,7 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Papa_Ctl:
|
case InfomainScript::c_Papa_Ctl:
|
||||||
if (m_selectedCharacter == e_papa) {
|
if (m_selectedCharacter == LegoActor::c_papa) {
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
PlayAction(InfomainScript::c_Papa_All_Movie);
|
PlayAction(InfomainScript::c_Papa_All_Movie);
|
||||||
@ -804,7 +805,7 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Nick_Ctl:
|
case InfomainScript::c_Nick_Ctl:
|
||||||
if (m_selectedCharacter == e_nick) {
|
if (m_selectedCharacter == LegoActor::c_nick) {
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
PlayAction(InfomainScript::c_Nick_All_Movie);
|
PlayAction(InfomainScript::c_Nick_All_Movie);
|
||||||
@ -812,7 +813,7 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Laura_Ctl:
|
case InfomainScript::c_Laura_Ctl:
|
||||||
if (m_selectedCharacter == e_laura) {
|
if (m_selectedCharacter == LegoActor::c_laura) {
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
BackgroundAudioManager()->Stop();
|
BackgroundAudioManager()->Stop();
|
||||||
PlayAction(InfomainScript::c_Laura_All_Movie);
|
PlayAction(InfomainScript::c_Laura_All_Movie);
|
||||||
@ -830,19 +831,19 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
GameState()->SetActor(m_selectedCharacter);
|
GameState()->SetActor(m_selectedCharacter);
|
||||||
|
|
||||||
switch (m_selectedCharacter) {
|
switch (m_selectedCharacter) {
|
||||||
case e_pepper:
|
case LegoActor::c_pepper:
|
||||||
PlayAction(InfomainScript::c_avo901in_RunAnim);
|
PlayAction(InfomainScript::c_avo901in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_mama:
|
case LegoActor::c_mama:
|
||||||
PlayAction(InfomainScript::c_avo902in_RunAnim);
|
PlayAction(InfomainScript::c_avo902in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_papa:
|
case LegoActor::c_papa:
|
||||||
PlayAction(InfomainScript::c_avo903in_RunAnim);
|
PlayAction(InfomainScript::c_avo903in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_nick:
|
case LegoActor::c_nick:
|
||||||
PlayAction(InfomainScript::c_avo904in_RunAnim);
|
PlayAction(InfomainScript::c_avo904in_RunAnim);
|
||||||
break;
|
break;
|
||||||
case e_laura:
|
case LegoActor::c_laura:
|
||||||
PlayAction(InfomainScript::c_avo905in_RunAnim);
|
PlayAction(InfomainScript::c_avo905in_RunAnim);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -901,23 +902,23 @@ MxU8 Infocenter::HandleButtonUp(MxS32 p_x, MxS32 p_y)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
switch (m_selectedCharacter) {
|
switch (m_selectedCharacter) {
|
||||||
case e_pepper:
|
case LegoActor::c_pepper:
|
||||||
dialogueToPlay = InfomainScript::c_avo901in_RunAnim;
|
dialogueToPlay = InfomainScript::c_avo901in_RunAnim;
|
||||||
GameState()->SetActorId(m_selectedCharacter);
|
GameState()->SetActorId(m_selectedCharacter);
|
||||||
break;
|
break;
|
||||||
case e_mama:
|
case LegoActor::c_mama:
|
||||||
dialogueToPlay = InfomainScript::c_avo902in_RunAnim;
|
dialogueToPlay = InfomainScript::c_avo902in_RunAnim;
|
||||||
GameState()->SetActorId(m_selectedCharacter);
|
GameState()->SetActorId(m_selectedCharacter);
|
||||||
break;
|
break;
|
||||||
case e_papa:
|
case LegoActor::c_papa:
|
||||||
dialogueToPlay = InfomainScript::c_avo903in_RunAnim;
|
dialogueToPlay = InfomainScript::c_avo903in_RunAnim;
|
||||||
GameState()->SetActorId(m_selectedCharacter);
|
GameState()->SetActorId(m_selectedCharacter);
|
||||||
break;
|
break;
|
||||||
case e_nick:
|
case LegoActor::c_nick:
|
||||||
dialogueToPlay = InfomainScript::c_avo904in_RunAnim;
|
dialogueToPlay = InfomainScript::c_avo904in_RunAnim;
|
||||||
GameState()->SetActorId(m_selectedCharacter);
|
GameState()->SetActorId(m_selectedCharacter);
|
||||||
break;
|
break;
|
||||||
case e_laura:
|
case LegoActor::c_laura:
|
||||||
dialogueToPlay = InfomainScript::c_avo905in_RunAnim;
|
dialogueToPlay = InfomainScript::c_avo905in_RunAnim;
|
||||||
GameState()->SetActorId(m_selectedCharacter);
|
GameState()->SetActorId(m_selectedCharacter);
|
||||||
break;
|
break;
|
||||||
@ -1262,7 +1263,7 @@ MxResult Infocenter::Tickle()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10070c20
|
// FUNCTION: LEGO1 0x10070c20
|
||||||
void Infocenter::PlayCutscene(Cutscene p_entityId, MxBool p_scale)
|
void Infocenter::PlayCutscene(IntroScript::Script p_entityId, MxBool p_scale)
|
||||||
{
|
{
|
||||||
m_currentCutscene = p_entityId;
|
m_currentCutscene = p_entityId;
|
||||||
|
|
||||||
@ -1272,9 +1273,9 @@ void Infocenter::PlayCutscene(Cutscene p_entityId, MxBool p_scale)
|
|||||||
SetAppCursor(e_cursorNone);
|
SetAppCursor(e_cursorNone);
|
||||||
VideoManager()->GetDisplaySurface()->ClearScreen();
|
VideoManager()->GetDisplaySurface()->ClearScreen();
|
||||||
|
|
||||||
if (m_currentCutscene != e_noIntro) {
|
if (m_currentCutscene != IntroScript::c_noneIntro) {
|
||||||
// check if the cutscene is an ending
|
// check if the cutscene is an ending
|
||||||
if (m_currentCutscene >= e_badEndMovie && m_currentCutscene <= e_goodEndMovie) {
|
if (m_currentCutscene >= IntroScript::c_BadEnd_Movie && m_currentCutscene <= IntroScript::c_GoodEnd_Movie) {
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1285,7 +1286,7 @@ void Infocenter::PlayCutscene(Cutscene p_entityId, MxBool p_scale)
|
|||||||
// FUNCTION: LEGO1 0x10070cb0
|
// FUNCTION: LEGO1 0x10070cb0
|
||||||
void Infocenter::StopCutscene()
|
void Infocenter::StopCutscene()
|
||||||
{
|
{
|
||||||
if (m_currentCutscene != e_noIntro) {
|
if (m_currentCutscene != IntroScript::c_noneIntro) {
|
||||||
InvokeAction(Extra::ActionType::e_close, *g_introScript, m_currentCutscene, NULL);
|
InvokeAction(Extra::ActionType::e_close, *g_introScript, m_currentCutscene, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1402,9 +1403,9 @@ void Infocenter::Reset()
|
|||||||
GameState()->m_savedPreviousArea = LegoGameState::e_undefined;
|
GameState()->m_savedPreviousArea = LegoGameState::e_undefined;
|
||||||
|
|
||||||
InitializeBitmaps();
|
InitializeBitmaps();
|
||||||
m_selectedCharacter = e_pepper;
|
m_selectedCharacter = LegoActor::c_pepper;
|
||||||
|
|
||||||
GameState()->SetActor(e_pepper);
|
GameState()->SetActor(LegoActor::c_pepper);
|
||||||
|
|
||||||
HelicopterState* state = (HelicopterState*) GameState()->GetState("HelicopterState");
|
HelicopterState* state = (HelicopterState*) GameState()->GetState("HelicopterState");
|
||||||
|
|
||||||
|
|||||||
@ -61,8 +61,7 @@ class MxDisplaySurface : public MxCore {
|
|||||||
MxS32 p_right,
|
MxS32 p_right,
|
||||||
MxS32 p_bottom,
|
MxS32 p_bottom,
|
||||||
MxS32 p_width,
|
MxS32 p_width,
|
||||||
MxS32 p_height,
|
MxS32 p_height
|
||||||
MxBool p_RLE
|
|
||||||
); // vtable+0x2c
|
); // vtable+0x2c
|
||||||
virtual void VTable0x30(
|
virtual void VTable0x30(
|
||||||
MxBitmap* p_bitmap,
|
MxBitmap* p_bitmap,
|
||||||
@ -71,8 +70,7 @@ class MxDisplaySurface : public MxCore {
|
|||||||
MxS32 p_right,
|
MxS32 p_right,
|
||||||
MxS32 p_bottom,
|
MxS32 p_bottom,
|
||||||
MxS32 p_width,
|
MxS32 p_width,
|
||||||
MxS32 p_height,
|
MxS32 p_height
|
||||||
MxBool p_RLE
|
|
||||||
); // vtable+0x30
|
); // vtable+0x30
|
||||||
virtual void Display(
|
virtual void Display(
|
||||||
MxS32 p_left,
|
MxS32 p_left,
|
||||||
@ -92,23 +90,12 @@ class MxDisplaySurface : public MxCore {
|
|||||||
); // vtable+0x44
|
); // vtable+0x44
|
||||||
|
|
||||||
void ClearScreen();
|
void ClearScreen();
|
||||||
static LPDIRECTDRAWSURFACE CreateCursorSurface(const CursorBitmap* p_cursorBitmap);
|
static LPDIRECTDRAWSURFACE CreateCursorSurface(const CursorBitmap* p_cursorBitmap, MxPalette* p_palette);
|
||||||
static LPDIRECTDRAWSURFACE CopySurface(LPDIRECTDRAWSURFACE p_src);
|
static LPDIRECTDRAWSURFACE CopySurface(LPDIRECTDRAWSURFACE p_src);
|
||||||
|
|
||||||
LPDIRECTDRAWSURFACE GetDirectDrawSurface1() { return m_ddSurface1; }
|
LPDIRECTDRAWSURFACE GetDirectDrawSurface1() { return m_ddSurface1; }
|
||||||
LPDIRECTDRAWSURFACE GetDirectDrawSurface2() { return m_ddSurface2; }
|
LPDIRECTDRAWSURFACE GetDirectDrawSurface2() { return m_ddSurface2; }
|
||||||
MxVideoParam& GetVideoParam() { return m_videoParam; }
|
MxVideoParam& GetVideoParam() { return m_videoParam; }
|
||||||
|
|
||||||
void DrawTransparentRLE(
|
|
||||||
MxU8*& p_bitmapData,
|
|
||||||
MxU8*& p_surfaceData,
|
|
||||||
MxU32 p_bitmapSize,
|
|
||||||
MxS32 p_width,
|
|
||||||
MxS32 p_height,
|
|
||||||
MxLong p_pitch,
|
|
||||||
MxU8 p_bpp
|
|
||||||
);
|
|
||||||
|
|
||||||
LPDIRECTDRAWSURFACE FUN_100bc8b0(MxS32 p_width, MxS32 p_height);
|
LPDIRECTDRAWSURFACE FUN_100bc8b0(MxS32 p_width, MxS32 p_height);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@ -327,6 +327,7 @@ void MxDisplaySurface::SetPalette(MxPalette* p_palette)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef MINIWIN
|
||||||
MxS32 bitCount = m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount;
|
MxS32 bitCount = m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount;
|
||||||
if (bitCount == 8) {
|
if (bitCount == 8) {
|
||||||
return;
|
return;
|
||||||
@ -378,6 +379,7 @@ void MxDisplaySurface::SetPalette(MxPalette* p_palette)
|
|||||||
m_32bitPal[i] = red | green | blue | alpha;
|
m_32bitPal[i] = red | green | blue | alpha;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100bacc0
|
// FUNCTION: LEGO1 0x100bacc0
|
||||||
@ -412,7 +414,13 @@ void MxDisplaySurface::VTable0x28(
|
|||||||
ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT | DDSD_CAPS;
|
ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT | DDSD_CAPS;
|
||||||
ddsd.dwWidth = p_width;
|
ddsd.dwWidth = p_width;
|
||||||
ddsd.dwHeight = p_height;
|
ddsd.dwHeight = p_height;
|
||||||
|
#ifdef MINIWIN
|
||||||
|
ddsd.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
|
||||||
|
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
|
||||||
|
ddsd.ddpfPixelFormat.dwRGBBitCount = 8;
|
||||||
|
#else
|
||||||
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
||||||
|
#endif
|
||||||
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
||||||
|
|
||||||
LPDIRECTDRAWSURFACE tempSurface = nullptr;
|
LPDIRECTDRAWSURFACE tempSurface = nullptr;
|
||||||
@ -422,6 +430,24 @@ void MxDisplaySurface::VTable0x28(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MINIWIN
|
||||||
|
MxBITMAPINFO* bmi = p_bitmap->GetBitmapInfo();
|
||||||
|
if (bmi) {
|
||||||
|
PALETTEENTRY pe[256];
|
||||||
|
for (int i = 0; i < 256; i++) {
|
||||||
|
pe[i].peRed = bmi->m_bmiColors[i].rgbRed;
|
||||||
|
pe[i].peGreen = bmi->m_bmiColors[i].rgbGreen;
|
||||||
|
pe[i].peBlue = bmi->m_bmiColors[i].rgbBlue;
|
||||||
|
pe[i].peFlags = PC_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPDIRECTDRAWPALETTE palette = nullptr;
|
||||||
|
if (draw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, pe, &palette, NULL) == DD_OK && palette) {
|
||||||
|
tempSurface->SetPalette(palette);
|
||||||
|
palette->Release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount != 32) {
|
if (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount != 32) {
|
||||||
DDCOLORKEY colorKey;
|
DDCOLORKEY colorKey;
|
||||||
if (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount == 8) {
|
if (m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount == 8) {
|
||||||
@ -432,6 +458,7 @@ void MxDisplaySurface::VTable0x28(
|
|||||||
}
|
}
|
||||||
tempSurface->SetColorKey(DDCKEY_SRCBLT, &colorKey);
|
tempSurface->SetColorKey(DDCKEY_SRCBLT, &colorKey);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DDSURFACEDESC tempDesc;
|
DDSURFACEDESC tempDesc;
|
||||||
memset(&tempDesc, 0, sizeof(tempDesc));
|
memset(&tempDesc, 0, sizeof(tempDesc));
|
||||||
@ -450,7 +477,7 @@ void MxDisplaySurface::VTable0x28(
|
|||||||
|
|
||||||
MxU8* data = p_bitmap->GetStart(p_left, p_top);
|
MxU8* data = p_bitmap->GetStart(p_left, p_top);
|
||||||
|
|
||||||
MxS32 bytesPerPixel = m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount / 8;
|
MxS32 bytesPerPixel = tempDesc.ddpfPixelFormat.dwRGBBitCount / 8;
|
||||||
MxU8* surface = (MxU8*) tempDesc.lpSurface;
|
MxU8* surface = (MxU8*) tempDesc.lpSurface;
|
||||||
|
|
||||||
MxLong stride = (bytesPerPixel == 1) ? GetAdjustedStride(p_bitmap) : -p_width + GetAdjustedStride(p_bitmap);
|
MxLong stride = (bytesPerPixel == 1) ? GetAdjustedStride(p_bitmap) : -p_width + GetAdjustedStride(p_bitmap);
|
||||||
@ -502,8 +529,7 @@ void MxDisplaySurface::VTable0x30(
|
|||||||
MxS32 p_right,
|
MxS32 p_right,
|
||||||
MxS32 p_bottom,
|
MxS32 p_bottom,
|
||||||
MxS32 p_width,
|
MxS32 p_width,
|
||||||
MxS32 p_height,
|
MxS32 p_height
|
||||||
MxBool p_RLE
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!GetRectIntersection(
|
if (!GetRectIntersection(
|
||||||
@ -526,7 +552,13 @@ void MxDisplaySurface::VTable0x30(
|
|||||||
ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT | DDSD_CAPS;
|
ddsd.dwFlags = DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT | DDSD_CAPS;
|
||||||
ddsd.dwWidth = p_width;
|
ddsd.dwWidth = p_width;
|
||||||
ddsd.dwHeight = p_height;
|
ddsd.dwHeight = p_height;
|
||||||
|
#ifdef MINIWIN
|
||||||
|
ddsd.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
|
||||||
|
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
|
||||||
|
ddsd.ddpfPixelFormat.dwRGBBitCount = 8;
|
||||||
|
#else
|
||||||
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
||||||
|
#endif
|
||||||
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
||||||
|
|
||||||
LPDIRECTDRAW draw = MVideoManager()->GetDirectDraw();
|
LPDIRECTDRAW draw = MVideoManager()->GetDirectDraw();
|
||||||
@ -535,6 +567,25 @@ void MxDisplaySurface::VTable0x30(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MINIWIN
|
||||||
|
MxBITMAPINFO* bmi = p_bitmap->GetBitmapInfo();
|
||||||
|
if (bmi) {
|
||||||
|
PALETTEENTRY pe[256];
|
||||||
|
for (int i = 0; i < 256; i++) {
|
||||||
|
pe[i].peRed = bmi->m_bmiColors[i].rgbRed;
|
||||||
|
pe[i].peGreen = bmi->m_bmiColors[i].rgbGreen;
|
||||||
|
pe[i].peBlue = bmi->m_bmiColors[i].rgbBlue;
|
||||||
|
pe[i].peFlags = PC_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPDIRECTDRAWPALETTE palette = nullptr;
|
||||||
|
if (draw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, pe, &palette, NULL) == DD_OK && palette) {
|
||||||
|
tempSurface->SetPalette(palette);
|
||||||
|
palette->Release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DDCOLORKEY colorKey;
|
DDCOLORKEY colorKey;
|
||||||
colorKey.dwColorSpaceLowValue = colorKey.dwColorSpaceHighValue = 0;
|
colorKey.dwColorSpaceLowValue = colorKey.dwColorSpaceHighValue = 0;
|
||||||
tempSurface->SetColorKey(DDCKEY_SRCBLT, &colorKey);
|
tempSurface->SetColorKey(DDCKEY_SRCBLT, &colorKey);
|
||||||
@ -550,38 +601,32 @@ void MxDisplaySurface::VTable0x30(
|
|||||||
|
|
||||||
MxU8* data = p_bitmap->GetStart(p_left, p_top);
|
MxU8* data = p_bitmap->GetStart(p_left, p_top);
|
||||||
|
|
||||||
MxS32 bytesPerPixel = m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount / 8;
|
MxS32 bytesPerPixel = tempDesc.ddpfPixelFormat.dwRGBBitCount / 8;
|
||||||
MxU8* surface = (MxU8*) tempDesc.lpSurface;
|
MxU8* surface = (MxU8*) tempDesc.lpSurface;
|
||||||
|
|
||||||
if (p_RLE) {
|
MxLong stride = -p_width + GetAdjustedStride(p_bitmap);
|
||||||
MxS32 size = p_bitmap->GetBmiHeader()->biSizeImage;
|
MxLong length = -bytesPerPixel * p_width + tempDesc.lPitch;
|
||||||
DrawTransparentRLE(data, surface, size, p_width, p_height, tempDesc.lPitch, bytesPerPixel * 8);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
MxLong stride = -p_width + GetAdjustedStride(p_bitmap);
|
|
||||||
MxLong length = -bytesPerPixel * p_width + tempDesc.lPitch;
|
|
||||||
|
|
||||||
for (MxS32 i = 0; i < p_height; i++) {
|
for (MxS32 i = 0; i < p_height; i++) {
|
||||||
for (MxS32 j = 0; j < p_width; j++) {
|
for (MxS32 j = 0; j < p_width; j++) {
|
||||||
if (*data != 0) {
|
if (*data != 0) {
|
||||||
switch (bytesPerPixel) {
|
switch (bytesPerPixel) {
|
||||||
case 1:
|
case 1:
|
||||||
*surface = *data;
|
*surface = *data;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
*(MxU16*) surface = m_16bitPal[*data];
|
*(MxU16*) surface = m_16bitPal[*data];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*(MxU32*) surface = m_32bitPal[*data];
|
*(MxU32*) surface = m_32bitPal[*data];
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
data++;
|
|
||||||
surface += bytesPerPixel;
|
|
||||||
}
|
}
|
||||||
data += stride;
|
data++;
|
||||||
surface += length;
|
surface += bytesPerPixel;
|
||||||
}
|
}
|
||||||
|
data += stride;
|
||||||
|
surface += length;
|
||||||
}
|
}
|
||||||
|
|
||||||
tempSurface->Unlock(NULL);
|
tempSurface->Unlock(NULL);
|
||||||
@ -591,161 +636,6 @@ void MxDisplaySurface::VTable0x30(
|
|||||||
tempSurface->Release();
|
tempSurface->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100bb500
|
|
||||||
// FUNCTION: BETA10 0x10140cd6
|
|
||||||
void MxDisplaySurface::DrawTransparentRLE(
|
|
||||||
MxU8*& p_bitmapData,
|
|
||||||
MxU8*& p_surfaceData,
|
|
||||||
MxU32 p_bitmapSize,
|
|
||||||
MxS32 p_width,
|
|
||||||
MxS32 p_height,
|
|
||||||
MxLong p_pitch,
|
|
||||||
MxU8 p_bpp
|
|
||||||
)
|
|
||||||
{
|
|
||||||
/* Assumes partial RLE for the bitmap: only the skipped pixels are compressed.
|
|
||||||
The drawn pixels are uncompressed. The procedure is:
|
|
||||||
1. Read 3 bytes from p_bitmapData. Skip this many pixels on the surface.
|
|
||||||
2. Read 3 bytes from p_bitmapData. Draw this many pixels on the surface.
|
|
||||||
3. Repeat until the end of p_bitmapData is reached. */
|
|
||||||
|
|
||||||
MxU8* end = p_bitmapData + p_bitmapSize;
|
|
||||||
MxU8* surfCopy = p_surfaceData; // unused?
|
|
||||||
|
|
||||||
// The total number of pixels drawn or skipped
|
|
||||||
MxU32 count = 0;
|
|
||||||
|
|
||||||
// Used in both 8 and 16 bit branches
|
|
||||||
MxU32 skipCount;
|
|
||||||
MxU32 drawCount;
|
|
||||||
MxU32 t;
|
|
||||||
|
|
||||||
if (p_bpp == 16) {
|
|
||||||
// DECOMP: why goto?
|
|
||||||
goto sixteen_bit;
|
|
||||||
}
|
|
||||||
|
|
||||||
while (p_bitmapData < end) {
|
|
||||||
skipCount = *p_bitmapData++;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
skipCount += t << 8;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
skipCount += t << 16;
|
|
||||||
|
|
||||||
MxS32 rowRemainder = p_width - count % p_width;
|
|
||||||
count += skipCount;
|
|
||||||
|
|
||||||
if (skipCount >= rowRemainder) {
|
|
||||||
p_surfaceData += rowRemainder; // skip the rest of this row
|
|
||||||
skipCount -= rowRemainder;
|
|
||||||
p_surfaceData += p_pitch - p_width; // seek to start of next row
|
|
||||||
p_surfaceData += p_pitch * (skipCount / p_width); // skip entire rows if any
|
|
||||||
}
|
|
||||||
|
|
||||||
// skip any pixels at the start of this row
|
|
||||||
p_surfaceData += skipCount % p_width;
|
|
||||||
if (p_bitmapData >= end) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
drawCount = *p_bitmapData++;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
drawCount += t << 8;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
drawCount += t << 16;
|
|
||||||
|
|
||||||
rowRemainder = p_width - count % p_width;
|
|
||||||
count += drawCount;
|
|
||||||
|
|
||||||
if (drawCount >= rowRemainder) {
|
|
||||||
memcpy(p_surfaceData, p_bitmapData, rowRemainder);
|
|
||||||
p_surfaceData += rowRemainder;
|
|
||||||
p_bitmapData += rowRemainder;
|
|
||||||
|
|
||||||
drawCount -= rowRemainder;
|
|
||||||
|
|
||||||
// seek to start of bitmap on this screen row
|
|
||||||
p_surfaceData += p_pitch - p_width;
|
|
||||||
MxS32 rows = drawCount / p_width;
|
|
||||||
|
|
||||||
for (MxU32 i = 0; i < rows; i++) {
|
|
||||||
memcpy(p_surfaceData, p_bitmapData, p_width);
|
|
||||||
p_bitmapData += p_width;
|
|
||||||
p_surfaceData += p_pitch;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MxS32 tail = drawCount % p_width;
|
|
||||||
memcpy(p_surfaceData, p_bitmapData, tail);
|
|
||||||
p_surfaceData += tail;
|
|
||||||
p_bitmapData += tail;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
|
|
||||||
sixteen_bit:
|
|
||||||
while (p_bitmapData < end) {
|
|
||||||
skipCount = *p_bitmapData++;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
skipCount += t << 8;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
skipCount += t << 16;
|
|
||||||
|
|
||||||
MxS32 rowRemainder = p_width - count % p_width;
|
|
||||||
count += skipCount;
|
|
||||||
|
|
||||||
if (skipCount >= rowRemainder) {
|
|
||||||
p_surfaceData += 2 * rowRemainder;
|
|
||||||
skipCount -= rowRemainder;
|
|
||||||
p_surfaceData += p_pitch - 2 * p_width;
|
|
||||||
p_surfaceData += p_pitch * (skipCount / p_width);
|
|
||||||
}
|
|
||||||
|
|
||||||
p_surfaceData += 2 * (skipCount % p_width);
|
|
||||||
if (p_bitmapData >= end) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
drawCount = *p_bitmapData++;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
drawCount += t << 8;
|
|
||||||
t = *p_bitmapData++;
|
|
||||||
drawCount += t << 16;
|
|
||||||
|
|
||||||
rowRemainder = p_width - count % p_width;
|
|
||||||
count += drawCount;
|
|
||||||
|
|
||||||
if (drawCount >= rowRemainder) {
|
|
||||||
// memcpy
|
|
||||||
for (MxU32 j = 0; j < rowRemainder; j++) {
|
|
||||||
*((MxU16*) p_surfaceData) = m_16bitPal[*p_bitmapData++];
|
|
||||||
p_surfaceData += 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
drawCount -= rowRemainder;
|
|
||||||
|
|
||||||
p_surfaceData += p_pitch - 2 * p_width;
|
|
||||||
MxS32 rows = drawCount / p_width;
|
|
||||||
|
|
||||||
for (MxU32 i = 0; i < rows; i++) {
|
|
||||||
// memcpy
|
|
||||||
for (MxS32 j = 0; j < p_width; j++) {
|
|
||||||
*((MxU16*) p_surfaceData) = m_16bitPal[*p_bitmapData++];
|
|
||||||
p_surfaceData += 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
p_surfaceData += p_pitch - 2 * p_width;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MxS32 tail = drawCount % p_width;
|
|
||||||
// memcpy
|
|
||||||
for (MxS32 j = 0; j < tail; j++) {
|
|
||||||
*((MxU16*) p_surfaceData) = m_16bitPal[*p_bitmapData++];
|
|
||||||
p_surfaceData += 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100bba50
|
// FUNCTION: LEGO1 0x100bba50
|
||||||
void MxDisplaySurface::Display(MxS32 p_left, MxS32 p_top, MxS32 p_left2, MxS32 p_top2, MxS32 p_width, MxS32 p_height)
|
void MxDisplaySurface::Display(MxS32 p_left, MxS32 p_top, MxS32 p_left2, MxS32 p_top2, MxS32 p_width, MxS32 p_height)
|
||||||
{
|
{
|
||||||
@ -829,7 +719,13 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::VTable0x44(
|
|||||||
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT;
|
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT;
|
||||||
ddsd.dwWidth = p_bitmap->GetBmiWidth();
|
ddsd.dwWidth = p_bitmap->GetBmiWidth();
|
||||||
ddsd.dwHeight = p_bitmap->GetBmiHeightAbs();
|
ddsd.dwHeight = p_bitmap->GetBmiHeightAbs();
|
||||||
|
#ifdef MINIWIN
|
||||||
|
ddsd.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
|
||||||
|
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
|
||||||
|
ddsd.ddpfPixelFormat.dwRGBBitCount = 8;
|
||||||
|
#else
|
||||||
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
ddsd.ddpfPixelFormat = m_surfaceDesc.ddpfPixelFormat;
|
||||||
|
#endif
|
||||||
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
|
||||||
*p_ret = 0;
|
*p_ret = 0;
|
||||||
ddsd.ddsCaps.dwCaps |= DDSCAPS_SYSTEMMEMORY;
|
ddsd.ddsCaps.dwCaps |= DDSCAPS_SYSTEMMEMORY;
|
||||||
@ -852,6 +748,24 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::VTable0x44(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (surface) {
|
if (surface) {
|
||||||
|
#ifdef MINIWIN
|
||||||
|
MxBITMAPINFO* bmi = p_bitmap->GetBitmapInfo();
|
||||||
|
if (bmi) {
|
||||||
|
PALETTEENTRY pe[256];
|
||||||
|
for (int i = 0; i < 256; i++) {
|
||||||
|
pe[i].peRed = bmi->m_bmiColors[i].rgbRed;
|
||||||
|
pe[i].peGreen = bmi->m_bmiColors[i].rgbGreen;
|
||||||
|
pe[i].peBlue = bmi->m_bmiColors[i].rgbBlue;
|
||||||
|
pe[i].peFlags = PC_NONE;
|
||||||
|
}
|
||||||
|
LPDIRECTDRAWPALETTE palette = nullptr;
|
||||||
|
if (draw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, pe, &palette, NULL) == DD_OK && palette) {
|
||||||
|
surface->SetPalette(palette);
|
||||||
|
palette->Release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(&ddsd, 0, sizeof(ddsd));
|
memset(&ddsd, 0, sizeof(ddsd));
|
||||||
ddsd.dwSize = sizeof(ddsd);
|
ddsd.dwSize = sizeof(ddsd);
|
||||||
|
|
||||||
@ -971,6 +885,21 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::CopySurface(LPDIRECTDRAWSURFACE p_src)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MINIWIN
|
||||||
|
LPDIRECTDRAWPALETTE srcPalette = nullptr;
|
||||||
|
if (p_src->GetPalette(&srcPalette) == DD_OK && srcPalette) {
|
||||||
|
PALETTEENTRY pe[256];
|
||||||
|
if (srcPalette->GetEntries(0, 0, 256, pe) == DD_OK) {
|
||||||
|
LPDIRECTDRAWPALETTE newPalette = nullptr;
|
||||||
|
if (draw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, pe, &newPalette, NULL) == DD_OK) {
|
||||||
|
newSurface->SetPalette(newPalette);
|
||||||
|
newPalette->Release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
srcPalette->Release();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
RECT rect = {0, 0, (LONG) ddsd.dwWidth, (LONG) ddsd.dwHeight};
|
RECT rect = {0, 0, (LONG) ddsd.dwWidth, (LONG) ddsd.dwHeight};
|
||||||
|
|
||||||
if (newSurface->BltFast(0, 0, p_src, &rect, DDBLTFAST_WAIT) != DD_OK) {
|
if (newSurface->BltFast(0, 0, p_src, &rect, DDBLTFAST_WAIT) != DD_OK) {
|
||||||
@ -1084,8 +1013,7 @@ void MxDisplaySurface::VTable0x2c(
|
|||||||
MxS32 p_right,
|
MxS32 p_right,
|
||||||
MxS32 p_bottom,
|
MxS32 p_bottom,
|
||||||
MxS32 p_width,
|
MxS32 p_width,
|
||||||
MxS32 p_height,
|
MxS32 p_height
|
||||||
MxBool p_RLE
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// DECOMP: Almost an exact copy of VTable0x28, except that it uses the argument DDSURFACEDESC
|
// DECOMP: Almost an exact copy of VTable0x28, except that it uses the argument DDSURFACEDESC
|
||||||
@ -1111,38 +1039,25 @@ void MxDisplaySurface::VTable0x2c(
|
|||||||
MxLong destStride = p_desc->lPitch;
|
MxLong destStride = p_desc->lPitch;
|
||||||
MxU8* dest = (MxU8*) p_desc->lpSurface + bytesPerPixel * p_right + (p_bottom * destStride);
|
MxU8* dest = (MxU8*) p_desc->lpSurface + bytesPerPixel * p_right + (p_bottom * destStride);
|
||||||
|
|
||||||
if (p_RLE) {
|
MxLong srcStride = GetAdjustedStride(p_bitmap);
|
||||||
DrawTransparentRLE(
|
MxLong srcSkip = srcStride - p_width;
|
||||||
src,
|
MxLong destSkip = destStride - bytesPerPixel * p_width;
|
||||||
dest,
|
for (MxS32 i = 0; i < p_height; i++, src += srcSkip, dest += destSkip) {
|
||||||
p_bitmap->GetBmiHeader()->biSizeImage,
|
for (MxS32 j = 0; j < p_width; j++, src++) {
|
||||||
p_width,
|
if (*src != 0) {
|
||||||
p_height,
|
switch (bytesPerPixel) {
|
||||||
destStride,
|
case 1:
|
||||||
m_surfaceDesc.ddpfPixelFormat.dwRGBBitCount
|
*dest = *src;
|
||||||
);
|
break;
|
||||||
}
|
case 2:
|
||||||
else {
|
*(MxU16*) dest = m_16bitPal[*src];
|
||||||
MxLong srcStride = GetAdjustedStride(p_bitmap);
|
break;
|
||||||
MxLong srcSkip = srcStride - p_width;
|
default:
|
||||||
MxLong destSkip = destStride - bytesPerPixel * p_width;
|
*(MxU32*) dest = m_32bitPal[*src];
|
||||||
for (MxS32 i = 0; i < p_height; i++, src += srcSkip, dest += destSkip) {
|
break;
|
||||||
for (MxS32 j = 0; j < p_width; j++, src++) {
|
|
||||||
if (*src != 0) {
|
|
||||||
switch (bytesPerPixel) {
|
|
||||||
case 1:
|
|
||||||
*dest = *src;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
*(MxU16*) dest = m_16bitPal[*src];
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
*(MxU32*) dest = m_32bitPal[*src];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
dest += bytesPerPixel;
|
|
||||||
}
|
}
|
||||||
|
dest += bytesPerPixel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1183,11 +1098,10 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::FUN_100bc8b0(MxS32 p_width, MxS32 p_height
|
|||||||
return surface;
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_cursorBitmap)
|
LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_cursorBitmap, MxPalette* p_palette)
|
||||||
{
|
{
|
||||||
LPDIRECTDRAWSURFACE newSurface = NULL;
|
LPDIRECTDRAWSURFACE newSurface = NULL;
|
||||||
IDirectDraw* draw = MVideoManager()->GetDirectDraw();
|
IDirectDraw* draw = MVideoManager()->GetDirectDraw();
|
||||||
MVideoManager();
|
|
||||||
|
|
||||||
DDSURFACEDESC ddsd;
|
DDSURFACEDESC ddsd;
|
||||||
memset(&ddsd, 0, sizeof(ddsd));
|
memset(&ddsd, 0, sizeof(ddsd));
|
||||||
@ -1197,14 +1111,19 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
MxS32 bytesPerPixel = ddsd.ddpfPixelFormat.dwRGBBitCount / 8;
|
|
||||||
MxBool isAlphaAvailable = ((ddsd.ddpfPixelFormat.dwFlags & DDPF_ALPHAPIXELS) == DDPF_ALPHAPIXELS) &&
|
|
||||||
(ddsd.ddpfPixelFormat.dwRGBAlphaBitMask != 0);
|
|
||||||
|
|
||||||
ddsd.dwWidth = p_cursorBitmap->width;
|
ddsd.dwWidth = p_cursorBitmap->width;
|
||||||
ddsd.dwHeight = p_cursorBitmap->height;
|
ddsd.dwHeight = p_cursorBitmap->height;
|
||||||
ddsd.dwFlags = DDSD_PIXELFORMAT | DDSD_WIDTH | DDSD_HEIGHT | DDSD_CAPS;
|
ddsd.dwFlags = DDSD_PIXELFORMAT | DDSD_WIDTH | DDSD_HEIGHT | DDSD_CAPS;
|
||||||
ddsd.ddsCaps.dwCaps = DDSCAPS_VIDEOMEMORY | DDSCAPS_OFFSCREENPLAIN;
|
ddsd.ddsCaps.dwCaps = DDSCAPS_VIDEOMEMORY | DDSCAPS_OFFSCREENPLAIN;
|
||||||
|
#ifdef MINIWIN
|
||||||
|
ddsd.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
|
||||||
|
ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
|
||||||
|
ddsd.ddpfPixelFormat.dwRGBBitCount = 8;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
MxS32 bytesPerPixel = ddsd.ddpfPixelFormat.dwRGBBitCount / 8;
|
||||||
|
MxBool isAlphaAvailable = ((ddsd.ddpfPixelFormat.dwFlags & DDPF_ALPHAPIXELS) == DDPF_ALPHAPIXELS) &&
|
||||||
|
(ddsd.ddpfPixelFormat.dwRGBAlphaBitMask != 0);
|
||||||
|
|
||||||
if (draw->CreateSurface(&ddsd, &newSurface, NULL) != DD_OK) {
|
if (draw->CreateSurface(&ddsd, &newSurface, NULL) != DD_OK) {
|
||||||
ddsd.ddsCaps.dwCaps &= ~DDSCAPS_VIDEOMEMORY;
|
ddsd.ddsCaps.dwCaps &= ~DDSCAPS_VIDEOMEMORY;
|
||||||
@ -1215,6 +1134,10 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MINIWIN
|
||||||
|
newSurface->SetPalette(p_palette->CreateNativePalette());
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(&ddsd, 0, sizeof(ddsd));
|
memset(&ddsd, 0, sizeof(ddsd));
|
||||||
ddsd.dwSize = sizeof(ddsd);
|
ddsd.dwSize = sizeof(ddsd);
|
||||||
|
|
||||||
@ -1242,6 +1165,8 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_
|
|||||||
else {
|
else {
|
||||||
pixel = isBlack ? 0 : 0xff;
|
pixel = isBlack ? 0 : 0xff;
|
||||||
}
|
}
|
||||||
|
surface[x + y * p_cursorBitmap->width] = pixel;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
MxU16* surface = (MxU16*) ddsd.lpSurface;
|
MxU16* surface = (MxU16*) ddsd.lpSurface;
|
||||||
@ -1284,8 +1209,7 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::CreateCursorSurface(const CursorBitmap* p_
|
|||||||
switch (bytesPerPixel) {
|
switch (bytesPerPixel) {
|
||||||
case 1: {
|
case 1: {
|
||||||
DDCOLORKEY colorkey;
|
DDCOLORKEY colorkey;
|
||||||
colorkey.dwColorSpaceHighValue = 0x10;
|
colorkey.dwColorSpaceHighValue = colorkey.dwColorSpaceLowValue = 0x10;
|
||||||
colorkey.dwColorSpaceLowValue = 0x10;
|
|
||||||
newSurface->SetColorKey(DDCKEY_SRCBLT, &colorkey);
|
newSurface->SetColorKey(DDCKEY_SRCBLT, &colorkey);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -253,8 +253,7 @@ void MxVideoPresenter::PutFrame()
|
|||||||
rect.GetLeft(),
|
rect.GetLeft(),
|
||||||
rect.GetTop(),
|
rect.GetTop(),
|
||||||
m_frameBitmap->GetBmiWidth(),
|
m_frameBitmap->GetBmiWidth(),
|
||||||
m_frameBitmap->GetBmiHeightAbs(),
|
m_frameBitmap->GetBmiHeightAbs()
|
||||||
TRUE
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -280,7 +279,7 @@ void MxVideoPresenter::PutFrame()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
displaySurface->VTable0x30(m_frameBitmap, 0, 0, GetX(), GetY(), GetWidth(), GetHeight(), FALSE);
|
displaySurface->VTable0x30(m_frameBitmap, 0, 0, GetX(), GetY(), GetWidth(), GetHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_surface) {
|
else if (m_surface) {
|
||||||
|
|||||||
@ -20,10 +20,16 @@ void CreateWidescreen()
|
|||||||
struct AssetView {
|
struct AssetView {
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string extra;
|
std::string extra;
|
||||||
|
int32_t z;
|
||||||
};
|
};
|
||||||
const AssetView widescreenBitmaps[] = {
|
const AssetView widescreenBitmaps[] = {
|
||||||
{"GaraDoor_Background_Wide",
|
{"GaraDoor_Background_Wide",
|
||||||
"World:current, StartWith:\\Lego\\Scripts\\Isle\\Isle;1160, RemoveWith:\\Lego\\Scripts\\Isle\\Isle;1161"}
|
"World:current, StartWith:\\Lego\\Scripts\\Isle\\Isle;1160, RemoveWith:\\Lego\\Scripts\\Isle\\Isle;1161",
|
||||||
|
-1},
|
||||||
|
{"Police_Background_Wide",
|
||||||
|
"World:\\lego\\scripts\\police\\police;0, StartWith:\\Lego\\Scripts\\Police\\Police;0, "
|
||||||
|
"RemoveWith:\\Lego\\Scripts\\Police\\Police;0",
|
||||||
|
10}
|
||||||
};
|
};
|
||||||
|
|
||||||
si::Interleaf si;
|
si::Interleaf si;
|
||||||
@ -44,9 +50,9 @@ void CreateWidescreen()
|
|||||||
object->presenter_ = "MxStillPresenter";
|
object->presenter_ = "MxStillPresenter";
|
||||||
object->name_ = asset.name;
|
object->name_ = asset.name;
|
||||||
object->filetype_ = si::MxOb::STL;
|
object->filetype_ = si::MxOb::STL;
|
||||||
object->location_ = si::Vector3(-240.0, 0.0, -1.0);
|
object->location_ = si::Vector3(-240, 0.0, asset.z);
|
||||||
object->direction_ = si::Vector3(0, 0, 0);
|
object->direction_ = si::Vector3(0, 0, 0);
|
||||||
object->up_ = si::Vector3(0, 1.0, 0);
|
object->up_ = si::Vector3(0, 1, 0);
|
||||||
|
|
||||||
if (!object->ReplaceWithFile(file.c_str())) {
|
if (!object->ReplaceWithFile(file.c_str())) {
|
||||||
abort();
|
abort();
|
||||||
|
|||||||
3
assets/widescreen/Police_Background_Wide.bmp
Normal file
3
assets/widescreen/Police_Background_Wide.bmp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc2cfb5d0522d2cc4cfbaf74d6b1b5f1f2e0512f613e398849a2359d537deff5
|
||||||
|
size 538678
|
||||||
Loading…
Reference in New Issue
Block a user