Added code to use arrow transition for Time of Day Transition (#362)

This commit is contained in:
Hyper 2025-02-11 11:21:30 +00:00 committed by GitHub
parent fb55ac1087
commit a7063dc118
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -15,13 +15,16 @@ PPC_FUNC(sub_824DCF38)
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;
pLoading->m_IsNightToDay = App::s_isWerehog;
}
if (Config::UseArrowsForTimeOfDayTransition)
ctx.r4.u32 = SWA::eLoadingDisplayType_Arrows;
}
if (auto pGameDocument = SWA::CGameDocument::GetInstance())

View file

@ -1199,7 +1199,7 @@ static void DrawConfigOptions()
DrawConfigOption(rowCount++, yOffset, &Config::Hints, !isStage, cmnReason);
DrawConfigOption(rowCount++, yOffset, &Config::ControlTutorial, !isStage, cmnReason);
DrawConfigOption(rowCount++, yOffset, &Config::AchievementNotifications, true);
DrawConfigOption(rowCount++, yOffset, &Config::TimeOfDayTransition, true);
DrawConfigOption(rowCount++, yOffset, &Config::TimeOfDayTransition, !Config::UseArrowsForTimeOfDayTransition);
break;
case 1: // INPUT

View file

@ -109,6 +109,7 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, HomingAttackOnJump, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, HUDToggleKey, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, SaveScoreAtCheckpoints, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, UseArrowsForTimeOfDayTransition, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false);
CONFIG_DEFINE("Update", time_t, LastChecked, 0);