@@ -1159,8 +1159,7 @@ void CFrontEndUI::SFrontEndFrame::HandleActiveChange(CGuiTableGroup* active) {
11591159 active->SetColors (zeus::skWhite, zeus::CColor{0 .627450f , 0 .627450f , 0 .627450f , 0 .784313f });
11601160}
11611161
1162- void CFrontEndUI::SFrontEndFrame::DoCancel (CGuiTableGroup* caller) { /* Intentionally empty */
1163- }
1162+ void CFrontEndUI::SFrontEndFrame::DoCancel (CGuiTableGroup* caller) { /* Intentionally empty */ }
11641163
11651164void CFrontEndUI::SFrontEndFrame::DoSelectionChange (CGuiTableGroup* caller, int oldSel) {
11661165 CSfxManager::SfxStart (SFXfnt_selection_change, 1 .f , 0 .f , false , 0x7f , false , kInvalidAreaId );
@@ -1395,7 +1394,8 @@ void CFrontEndUI::SOptionsFrontEndFrame::DoMenuSelectionChange(CGuiTableGroup* c
13951394
13961395 if (option.option == EGameOption::Rumble && caller->GetUserSelection () > 0 ) {
13971396 x40_rumbleGen.HardStopAll ();
1398- x40_rumbleGen.Rumble (RumbleFxTable[size_t (ERumbleFxId::PlayerBump)], 1 .f , ERumblePriority::One, EIOPort::Player1);
1397+ x40_rumbleGen.Rumble (RumbleFxTable[size_t (ERumbleFxId::PlayerBump)], 1 .f , ERumblePriority::One,
1398+ EIOPort::Player1);
13991399 }
14001400 }
14011401 }
@@ -1643,18 +1643,16 @@ CFrontEndUI::CFrontEndUI() : CIOWin("FrontEndUI") {
16431643
16441644CFrontEndUI::~CFrontEndUI () {
16451645 if (x14_phase >= EPhase::DisplayFrontEnd) {
1646- // CAudioSys::RemoveAudioGroup(x44_frontendAudioGrp->GetAudioGroupData());
1646+ // CAudioSys::RemoveAudioGroup(x44_frontendAudioGrp->GetAudioGroupData());
16471647 }
16481648}
16491649
16501650void CFrontEndUI::StartSlideShow (CArchitectureQueue& queue) {
1651- // xf4_curAudio->StopMixing();
1651+ // xf4_curAudio->StopMixing();
16521652 queue.Push (MakeMsg::CreateCreateIOWin (EArchMsgTarget::IOWinManager, 12 , 11 , std::make_shared<CSlideShow>()));
16531653}
16541654
1655- std::string CFrontEndUI::GetAttractMovieFileName (int idx) {
1656- return fmt::format (" Video/attract{}.thp" , idx);
1657- }
1655+ std::string CFrontEndUI::GetAttractMovieFileName (int idx) { return fmt::format (" Video/attract{}.thp" , idx); }
16581656
16591657std::string CFrontEndUI::GetNextAttractMovieFileName () {
16601658 std::string ret = GetAttractMovieFileName (xbc_nextAttract);
@@ -1771,9 +1769,9 @@ void CFrontEndUI::CompleteStateTransition() {
17711769 case EScreen::FileSelect:
17721770 SetCurrentMovie (EMenuMovie::FileSelectLoop);
17731771 if (oldScreen == EScreen::Title) {
1774- // xf4_curAudio->StopMixing();
1775- // xf4_curAudio = xd8_audio2.get();
1776- // xf4_curAudio->StartMixing();
1772+ // xf4_curAudio->StopMixing();
1773+ // xf4_curAudio = xd8_audio2.get();
1774+ // xf4_curAudio->StartMixing();
17771775 }
17781776 if (xdc_saveUI)
17791777 xdc_saveUI->ResetCardDriver ();
@@ -1829,8 +1827,8 @@ void CFrontEndUI::Draw() {
18291827 g_Renderer->SetDepthReadWrite (false , false );
18301828 const auto width = x38_pressStart->GetWidth ();
18311829 const auto height = x38_pressStart->GetHeight ();
1832- CGraphics::Render2D (*x38_pressStart, 320 - width / 2 , 72 - height / 2 , width, height ,
1833- zeus::CColor{1 .f , x64_pressStartAlpha});
1830+ CGraphics::Render2D (*x38_pressStart, 320 - ( width / 2 ) , 72 - ( height / 2 ) , width,
1831+ height, zeus::CColor{1 .f , x64_pressStartAlpha});
18341832 }
18351833
18361834 if (xc0_attractCount > 0 ) {
@@ -1966,16 +1964,16 @@ void CFrontEndUI::ProcessUserInput(const CFinalInput& input, CArchitectureQueue&
19661964
19671965 if (x50_curScreen != x54_nextScreen) {
19681966 if (x54_nextScreen == EScreen::AttractMovie &&
1969- (input.PStart () || input.PA () || input.PSpecialKey (ESpecialKey::Esc) ||
1970- input.PSpecialKey (ESpecialKey::Enter) || input. PMouseButton (EMouseButton::Primary))) {
1967+ (input.PStart () || input.PA () || input.PSpecialKey (ESpecialKey::Esc) || input. PSpecialKey (ESpecialKey::Enter) ||
1968+ input.PMouseButton (EMouseButton::Primary))) {
19711969 /* Player wants to return to opening credits from attract movie */
19721970 SetFadeBlackTimer (std::min (1 .f , x58_fadeBlackTimer));
19731971 PlayAdvanceSfx ();
19741972 return ;
19751973 }
19761974
1977- if (input.PA () || input.PStart () || input.PSpecialKey (ESpecialKey::Esc) ||
1978- input.PSpecialKey (ESpecialKey::Enter) || input. PMouseButton (EMouseButton::Primary)) {
1975+ if (input.PA () || input.PStart () || input.PSpecialKey (ESpecialKey::Esc) || input. PSpecialKey (ESpecialKey::Enter) ||
1976+ input.PMouseButton (EMouseButton::Primary)) {
19791977 if (x50_curScreen == EScreen::OpenCredits && x54_nextScreen == EScreen::Title && x58_fadeBlackTimer > 1 .f ) {
19801978 /* Player is too impatient to view opening credits */
19811979 xd0_playerSkipToTitle = true ;
@@ -2046,7 +2044,7 @@ void CFrontEndUI::ProcessUserInput(const CFinalInput& input, CArchitectureQueue&
20462044 StartStateTransition (EScreen::FileSelect);
20472045 return ;
20482046 case SFusionBonusFrame::EAction::PlayNESMetroid:
2049- // xf4_curAudio->StopMixing();
2047+ // xf4_curAudio->StopMixing();
20502048 xec_emuFrme = std::make_unique<SNesEmulatorFrame>();
20512049 if (xdc_saveUI)
20522050 xdc_saveUI->SetInGame (true );
@@ -2119,9 +2117,9 @@ CIOWin::EMessageReturn CFrontEndUI::Update(float dt, CArchitectureQueue& queue)
21192117 }
21202118 xe8_frontendNoCardFrme = std::make_unique<SFrontEndFrame>(x1c_rndB);
21212119 x38_pressStart.GetObj ();
2122- // CAudioSys::AddAudioGroup(x44_frontendAudioGrp->GetAudioGroupData());
2123- // xd4_audio1 = std::make_unique<CStaticAudioPlayer>("Audio/frontend_1.rsf", 416480, 1973664);
2124- // xd8_audio2 = std::make_unique<CStaticAudioPlayer>("Audio/frontend_2.rsf", 273556, 1636980);
2120+ // CAudioSys::AddAudioGroup(x44_frontendAudioGrp->GetAudioGroupData());
2121+ // xd4_audio1 = std::make_unique<CStaticAudioPlayer>("Audio/frontend_1.rsf", 416480, 1973664);
2122+ // xd8_audio2 = std::make_unique<CStaticAudioPlayer>("Audio/frontend_2.rsf", 273556, 1636980);
21252123 x14_phase = EPhase::LoadFrames;
21262124 }
21272125 if (x14_phase == EPhase::LoadDeps)
@@ -2136,8 +2134,8 @@ CIOWin::EMessageReturn CFrontEndUI::Update(float dt, CArchitectureQueue& queue)
21362134 if (/* !xd4_audio1->IsReady() || !xd8_audio2->IsReady() || */ !xe0_frontendCardFrme->PumpLoad () ||
21372135 !xe8_frontendNoCardFrme->PumpLoad () || !xdc_saveUI->PumpLoad ())
21382136 return EMessageReturn::Exit;
2139- // xf4_curAudio = xd4_audio1.get();
2140- // xf4_curAudio->StartMixing();
2137+ // xf4_curAudio = xd4_audio1.get();
2138+ // xf4_curAudio->StartMixing();
21412139 x14_phase = EPhase::LoadMovies;
21422140 [[fallthrough]];
21432141
@@ -2178,15 +2176,15 @@ CIOWin::EMessageReturn CFrontEndUI::Update(float dt, CArchitectureQueue& queue)
21782176 xec_emuFrme.reset ();
21792177 if (xdc_saveUI)
21802178 xdc_saveUI->SetInGame (false );
2181- // xf4_curAudio->StartMixing();
2179+ // xf4_curAudio->StartMixing();
21822180 }
21832181 break ;
21842182 }
21852183
21862184 if (xd2_deferSlideShow) {
21872185 /* Start mixing slideshow music */
21882186 xd2_deferSlideShow = false ;
2189- // xf4_curAudio->StartMixing();
2187+ // xf4_curAudio->StartMixing();
21902188 if (xdc_saveUI)
21912189 xdc_saveUI->ResetCardDriver ();
21922190 }
0 commit comments