mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-07-11 23:30:23 -04:00
Moved Eggmanland loading transition fix to a code (#401)
This commit is contained in:
@@ -27,16 +27,19 @@ PPC_FUNC(sub_824DCF38)
|
|||||||
ctx.r4.u32 = SWA::eLoadingDisplayType_Arrows;
|
ctx.r4.u32 = SWA::eLoadingDisplayType_Arrows;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
if (Config::FixEggmanlandUsingEventGalleryTransition)
|
||||||
{
|
{
|
||||||
auto stageName = pGameDocument->m_pMember->m_StageName.c_str();
|
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
||||||
|
|
||||||
if (stageName && strlen(stageName))
|
|
||||||
{
|
{
|
||||||
/* Fix restarting Eggmanland as the Werehog
|
auto stageName = pGameDocument->m_pMember->m_StageName.c_str();
|
||||||
erroneously using the Event Gallery transition. */
|
|
||||||
if (ctx.r4.u32 == SWA::eLoadingDisplayType_EventGallery && !strcmp(stageName, "Act_EggmanLand"))
|
if (stageName && strlen(stageName))
|
||||||
ctx.r4.u32 = SWA::eLoadingDisplayType_NowLoading;
|
{
|
||||||
|
/* Fix restarting Eggmanland as the Werehog
|
||||||
|
erroneously using the Event Gallery transition. */
|
||||||
|
if (ctx.r4.u32 == SWA::eLoadingDisplayType_EventGallery && !strcmp(stageName, "Act_EggmanLand"))
|
||||||
|
ctx.r4.u32 = SWA::eLoadingDisplayType_NowLoading;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, AllowCancellingUnleash, false);
|
|||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableAutoSaveWarning, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableAutoSaveWarning, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDLCIcon, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDLCIcon, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
|
||||||
|
CONFIG_DEFINE_HIDDEN("Codes", bool, FixEggmanlandUsingEventGalleryTransition, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, FixUnleashOutOfControlDrain, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, FixUnleashOutOfControlDrain, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, HomingAttackOnJump, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, HomingAttackOnJump, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user