Misc: Loading old save state versions is unlikely

This commit is contained in:
Stenzek
2024-05-31 18:48:26 +10:00
parent c4bf5b4f2c
commit 723af4de3a
8 changed files with 12 additions and 12 deletions

View File

@ -487,7 +487,7 @@ bool Pad::DoState(StateWrapper& sw, bool is_memory_state)
{
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
{
if ((sw.GetVersion() < 50) && (i >= 2))
if ((sw.GetVersion() < 50) && (i >= 2)) [[unlikely]]
{
// loading from old savestate which only had max 2 controllers.
// honoring load_devices_from_save_states in this case seems debatable, but might as well...
@ -519,7 +519,7 @@ bool Pad::DoState(StateWrapper& sw, bool is_memory_state)
}
}
if (sw.GetVersion() >= 50)
if (sw.GetVersion() >= 50) [[unlikely]]
{
for (u32 i = 0; i < NUM_MULTITAPS; i++)
{