diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 241f1006d6..60c0c86f94 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -984,8 +984,6 @@ struct retro_hw_render_context_negotiation_interface /* The core must spend some time initializing before serialization is * supported. */ #define RETRO_SERIALIZATION_QUIRK_MUST_INITIALIZE (1 << 1) -/* If MUST_INITIALIZE is set, this should also be set if initialization is - * in progress. */ /* Serialization size may change within a session. */ #define RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE (1 << 2) /* Set by the frontend to acknowledge that it supports variable-sized @@ -993,8 +991,8 @@ struct retro_hw_render_context_negotiation_interface #define RETRO_SERIALIZATION_QUIRK_FRONT_VARIABLE_SIZE (1 << 3) /* Serialized state can only be loaded during the same session. */ #define RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION (1 << 4) -/* Serialized state cannot be loaded on a different architecture from the - * one it was saved on. */ +/* Serialized state cannot be loaded on a different architecture from the one + * it was saved on, typically due to endianness or word length issues. */ #define RETRO_SERIALIZATION_QUIRK_ARCHITECTURE_DEPENDENT (1 << 5) #define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS 44 diff --git a/network/netplay/netplay.c b/network/netplay/netplay.c index e5aa7402fa..5dede24636 100644 --- a/network/netplay/netplay.c +++ b/network/netplay/netplay.c @@ -1439,16 +1439,16 @@ bool init_netplay(bool is_spectate, const char *server, unsigned port) /* Map the core's quirks to our quirks */ serialization_quirks = core_serialization_quirks(); - if ((serialization_quirks & ~((uint64_t) NETPLAY_QUIRK_MAP_UNDERSTOOD))) + if (serialization_quirks & ~((uint64_t) NETPLAY_QUIRK_MAP_UNDERSTOOD)) { /* Quirks we don't support! Just disable everything. */ quirks |= NETPLAY_QUIRK_NO_SAVESTATES; } - if ((serialization_quirks & NETPLAY_QUIRK_MAP_NO_SAVESTATES)) + if (serialization_quirks & NETPLAY_QUIRK_MAP_NO_SAVESTATES) quirks |= NETPLAY_QUIRK_NO_SAVESTATES; - if ((serialization_quirks & NETPLAY_QUIRK_MAP_NO_TRANSMISSION)) + if (serialization_quirks & NETPLAY_QUIRK_MAP_NO_TRANSMISSION) quirks |= NETPLAY_QUIRK_NO_TRANSMISSION; - if ((serialization_quirks & NETPLAY_QUIRK_MAP_INITIALIZATION)) + if (serialization_quirks & NETPLAY_QUIRK_MAP_INITIALIZATION) quirks |= NETPLAY_QUIRK_INITIALIZATION; if (netplay_is_client)