mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-08 03:49:39 -05:00
Fix PlayStation time of day transition animation not rendering. (#167)
* Fix PlayStation transition animation not rendering. * Remove medal swinging animation from the YNCP.
This commit is contained in:
@@ -17,7 +17,7 @@ PPC_FUNC(sub_824DCF38)
|
||||
if (Config::TimeOfDayTransition == ETimeOfDayTransition::PlayStation)
|
||||
{
|
||||
if (ctx.r4.u32 == SWA::eLoadingDisplayType_WerehogMovie)
|
||||
ctx.r4.u32 = SWA::eLoadingDisplayType_Arrows;
|
||||
ctx.r4.u32 = SWA::eLoadingDisplayType_ChangeTimeOfDay;
|
||||
}
|
||||
|
||||
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
||||
@@ -36,6 +36,26 @@ PPC_FUNC(sub_824DCF38)
|
||||
__imp__sub_824DCF38(ctx, base);
|
||||
}
|
||||
|
||||
// The game checks for a bool to render the PS3 transition animation. It's never set so it's presumably a "is PS3" bool.
|
||||
bool LoadingRenderMidAsmHook()
|
||||
{
|
||||
return Config::TimeOfDayTransition == ETimeOfDayTransition::PlayStation;
|
||||
}
|
||||
|
||||
// Patch "ui_loading.yncp" to remove the medal swinging animation.
|
||||
// SWA::CCsdProject::Make
|
||||
PPC_FUNC_IMPL(__imp__sub_825E4068);
|
||||
PPC_FUNC(sub_825E4068)
|
||||
{
|
||||
if (ctx.r4.u32 != NULL && ctx.r5.u32 == 0x65C0C && XXH3_64bits(base + ctx.r4.u32, ctx.r5.u32) == 0xD4DA1A9BE4D79BED)
|
||||
{
|
||||
// Keyframe count. First keyframe is at the center of the screen.
|
||||
PPC_STORE_U32(ctx.r4.u32 + 0x2794C, 1);
|
||||
}
|
||||
|
||||
__imp__sub_825E4068(ctx, base);
|
||||
}
|
||||
|
||||
// SWA::CLoading::Update
|
||||
PPC_FUNC_IMPL(__imp__sub_824DAB60);
|
||||
PPC_FUNC(sub_824DAB60)
|
||||
|
||||
Reference in New Issue
Block a user