mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix PS3 time of day transition aspect ratio and outro animation (#197)
This commit is contained in:
parent
0d4b66fe98
commit
57e888658a
3 changed files with 21 additions and 5 deletions
|
|
@ -21,14 +21,20 @@ namespace SWA
|
|||
{
|
||||
public:
|
||||
SWA_INSERT_PADDING(0xD8);
|
||||
be<uint32_t> m_pUnk;
|
||||
be<uint32_t> m_FieldD8;
|
||||
SWA_INSERT_PADDING(0x3C);
|
||||
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcNightToDay;
|
||||
SWA_INSERT_PADDING(0x0C);
|
||||
be<uint32_t> m_IsVisible;
|
||||
SWA_INSERT_PADDING(0x0C);
|
||||
be<ELoadingDisplayType> m_LoadingDisplayType;
|
||||
SWA_INSERT_PADDING(0x65);
|
||||
SWA_INSERT_PADDING(0x61);
|
||||
bool m_IsNightToDay;
|
||||
};
|
||||
|
||||
SWA_ASSERT_OFFSETOF(CLoading, m_FieldD8, 0xD8);
|
||||
SWA_ASSERT_OFFSETOF(CLoading, m_rcNightToDay, 0x118);
|
||||
SWA_ASSERT_OFFSETOF(CLoading, m_IsVisible, 0x12C);
|
||||
SWA_ASSERT_OFFSETOF(CLoading, m_LoadingDisplayType, 0x13C);
|
||||
SWA_ASSERT_OFFSETOF(CLoading, m_IsNightToDay, 0x1A1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@ static const ankerl::unordered_dense::map<XXH64_hash_t, CsdModifier> g_modifiers
|
|||
{ HashStr("ui_gate/footer/status_footer"), { ALIGN_BOTTOM } },
|
||||
{ HashStr("ui_gate/header/status_title"), { ALIGN_TOP | OFFSET_SCALE_LEFT, 652.0f } },
|
||||
{ HashStr("ui_gate/header/status_title/title_bg/center"), { ALIGN_TOP | EXTEND_LEFT } },
|
||||
{ HashStr("ui_gate/header/status_title/title_bg/center/h_light"), { ALIGN_TOP | EXTEND_LEFT} },
|
||||
{ HashStr("ui_gate/header/status_title/title_bg/center/h_light"), { ALIGN_TOP | EXTEND_LEFT } },
|
||||
{ HashStr("ui_gate/header/status_title/title_bg/right"), { ALIGN_TOP | STORE_RIGHT_CORNER } },
|
||||
{ HashStr("ui_gate/window/window_bg"), { STRETCH } },
|
||||
|
||||
|
|
@ -383,12 +383,18 @@ static const ankerl::unordered_dense::map<XXH64_hash_t, CsdModifier> g_modifiers
|
|||
{ HashStr("ui_itemresult/main/iresult_title"), { ALIGN_TOP } },
|
||||
{ HashStr("ui_itemresult/main/iresult_title"), { ALIGN_TOP | OFFSET_SCALE_LEFT, 688.0f } },
|
||||
{ HashStr("ui_itemresult/main/iresult_title/title_bg/center"), { ALIGN_TOP | EXTEND_LEFT } },
|
||||
{ HashStr("ui_itemresult/main/iresult_title/title_bg/center/h_light"), { ALIGN_TOP | EXTEND_LEFT} },
|
||||
{ HashStr("ui_itemresult/main/iresult_title/title_bg/center/h_light"), { ALIGN_TOP | EXTEND_LEFT } },
|
||||
{ HashStr("ui_itemresult/main/iresult_title/title_bg/right"), { ALIGN_TOP | STORE_RIGHT_CORNER } },
|
||||
|
||||
// ui_loading
|
||||
{ HashStr("ui_loading/bg_1"), { STRETCH } },
|
||||
{ HashStr("ui_loading/bg_2"), { STRETCH } },
|
||||
{ HashStr("ui_loading/n_2_d/bg/sky"), { STRETCH } },
|
||||
{ HashStr("ui_loading/n_2_d/bg/under"), { STRETCH } },
|
||||
{ HashStr("ui_loading/n_2_d/letterbox/letterbox_under"), { STRETCH } },
|
||||
{ HashStr("ui_loading/n_2_d/letterbox/letterbox_top"), { STRETCH } },
|
||||
{ HashStr("ui_loading/n_2_d/letterbox/black_l"), { EXTEND_LEFT | STRETCH_VERTICAL } },
|
||||
{ HashStr("ui_loading/n_2_d/letterbox/black_r"), { EXTEND_RIGHT | STRETCH_VERTICAL } },
|
||||
|
||||
// ui_mediaroom
|
||||
{ HashStr("ui_mediaroom/header/bg/img_1"), { EXTEND_LEFT } },
|
||||
|
|
|
|||
|
|
@ -11,13 +11,17 @@ bool m_isSavedAchievementData = false;
|
|||
PPC_FUNC_IMPL(__imp__sub_824DCF38);
|
||||
PPC_FUNC(sub_824DCF38)
|
||||
{
|
||||
auto pLoading = (SWA::CLoading*)g_memory.Translate(ctx.r3.u32);
|
||||
|
||||
App::s_isLoading = true;
|
||||
|
||||
// TODO: use the actual PS3 loading screen ("n_2_d").
|
||||
if (Config::TimeOfDayTransition == ETimeOfDayTransition::PlayStation)
|
||||
{
|
||||
if (ctx.r4.u32 == SWA::eLoadingDisplayType_WerehogMovie)
|
||||
{
|
||||
ctx.r4.u32 = SWA::eLoadingDisplayType_ChangeTimeOfDay;
|
||||
pLoading->m_IsNightToDay = App::s_isWerehog;
|
||||
}
|
||||
}
|
||||
|
||||
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue