System: Fix reset when booting EXE

This commit is contained in:
Stenzek 2024-10-06 13:36:46 +10:00
parent 80971dac5a
commit c9f7ef5f9a
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -2585,7 +2585,8 @@ bool System::SetBootMode(BootMode new_boot_mode, DiscRegion disc_region, Error*
((disc_region != DiscRegion::NonPS1) && ((disc_region != DiscRegion::NonPS1) &&
(s_state == State::Starting || (s_bios_image_info && s_bios_image_info->SupportsFastBoot()))); (s_state == State::Starting || (s_bios_image_info && s_bios_image_info->SupportsFastBoot())));
const System::BootMode actual_new_boot_mode = const System::BootMode actual_new_boot_mode =
(new_boot_mode == BootMode::FastBoot || (s_bios_image_info && s_bios_image_info->CanSlowBootDisc(disc_region))) ? (new_boot_mode == BootMode::FastBoot ||
(new_boot_mode == BootMode::FullBoot && s_bios_image_info && !s_bios_image_info->CanSlowBootDisc(disc_region))) ?
(can_fast_boot ? BootMode::FastBoot : BootMode::FullBoot) : (can_fast_boot ? BootMode::FastBoot : BootMode::FullBoot) :
new_boot_mode; new_boot_mode;
if (actual_new_boot_mode == s_boot_mode) if (actual_new_boot_mode == s_boot_mode)