mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-20 15:02:20 +00:00
Added code to use arrow transition for Time of Day Transition (#362)
This commit is contained in:
parent
fb55ac1087
commit
a7063dc118
3 changed files with 7 additions and 3 deletions
|
|
@ -15,13 +15,16 @@ PPC_FUNC(sub_824DCF38)
|
||||||
|
|
||||||
App::s_isLoading = true;
|
App::s_isLoading = true;
|
||||||
|
|
||||||
if (Config::TimeOfDayTransition == ETimeOfDayTransition::PlayStation)
|
if (ctx.r4.u32 == SWA::eLoadingDisplayType_WerehogMovie)
|
||||||
{
|
{
|
||||||
if (ctx.r4.u32 == SWA::eLoadingDisplayType_WerehogMovie)
|
if (Config::TimeOfDayTransition == ETimeOfDayTransition::PlayStation)
|
||||||
{
|
{
|
||||||
ctx.r4.u32 = SWA::eLoadingDisplayType_ChangeTimeOfDay;
|
ctx.r4.u32 = SWA::eLoadingDisplayType_ChangeTimeOfDay;
|
||||||
pLoading->m_IsNightToDay = App::s_isWerehog;
|
pLoading->m_IsNightToDay = App::s_isWerehog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Config::UseArrowsForTimeOfDayTransition)
|
||||||
|
ctx.r4.u32 = SWA::eLoadingDisplayType_Arrows;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
if (auto pGameDocument = SWA::CGameDocument::GetInstance())
|
||||||
|
|
|
||||||
|
|
@ -1199,7 +1199,7 @@ static void DrawConfigOptions()
|
||||||
DrawConfigOption(rowCount++, yOffset, &Config::Hints, !isStage, cmnReason);
|
DrawConfigOption(rowCount++, yOffset, &Config::Hints, !isStage, cmnReason);
|
||||||
DrawConfigOption(rowCount++, yOffset, &Config::ControlTutorial, !isStage, cmnReason);
|
DrawConfigOption(rowCount++, yOffset, &Config::ControlTutorial, !isStage, cmnReason);
|
||||||
DrawConfigOption(rowCount++, yOffset, &Config::AchievementNotifications, true);
|
DrawConfigOption(rowCount++, yOffset, &Config::AchievementNotifications, true);
|
||||||
DrawConfigOption(rowCount++, yOffset, &Config::TimeOfDayTransition, true);
|
DrawConfigOption(rowCount++, yOffset, &Config::TimeOfDayTransition, !Config::UseArrowsForTimeOfDayTransition);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1: // INPUT
|
case 1: // INPUT
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, HomingAttackOnJump, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, SaveScoreAtCheckpoints, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, SaveScoreAtCheckpoints, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false);
|
||||||
|
CONFIG_DEFINE_HIDDEN("Codes", bool, UseArrowsForTimeOfDayTransition, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false);
|
||||||
|
|
||||||
CONFIG_DEFINE("Update", time_t, LastChecked, 0);
|
CONFIG_DEFINE("Update", time_t, LastChecked, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue