Style and clarity nits.

This commit is contained in:
Gregor Richards 2016-10-01 07:44:09 -04:00
parent 51683661e5
commit a636bac428
2 changed files with 6 additions and 8 deletions

View File

@ -984,8 +984,6 @@ struct retro_hw_render_context_negotiation_interface
/* The core must spend some time initializing before serialization is /* The core must spend some time initializing before serialization is
* supported. */ * supported. */
#define RETRO_SERIALIZATION_QUIRK_MUST_INITIALIZE (1 << 1) #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. */ /* Serialization size may change within a session. */
#define RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE (1 << 2) #define RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE (1 << 2)
/* Set by the frontend to acknowledge that it supports variable-sized /* 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) #define RETRO_SERIALIZATION_QUIRK_FRONT_VARIABLE_SIZE (1 << 3)
/* Serialized state can only be loaded during the same session. */ /* Serialized state can only be loaded during the same session. */
#define RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION (1 << 4) #define RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION (1 << 4)
/* Serialized state cannot be loaded on a different architecture from the /* Serialized state cannot be loaded on a different architecture from the one
* one it was saved on. */ * it was saved on, typically due to endianness or word length issues. */
#define RETRO_SERIALIZATION_QUIRK_ARCHITECTURE_DEPENDENT (1 << 5) #define RETRO_SERIALIZATION_QUIRK_ARCHITECTURE_DEPENDENT (1 << 5)
#define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS 44 #define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS 44

View File

@ -1439,16 +1439,16 @@ bool init_netplay(bool is_spectate, const char *server, unsigned port)
/* Map the core's quirks to our quirks */ /* Map the core's quirks to our quirks */
serialization_quirks = core_serialization_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 we don't support! Just disable everything. */
quirks |= NETPLAY_QUIRK_NO_SAVESTATES; 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; 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; quirks |= NETPLAY_QUIRK_NO_TRANSMISSION;
if ((serialization_quirks & NETPLAY_QUIRK_MAP_INITIALIZATION)) if (serialization_quirks & NETPLAY_QUIRK_MAP_INITIALIZATION)
quirks |= NETPLAY_QUIRK_INITIALIZATION; quirks |= NETPLAY_QUIRK_INITIALIZATION;
if (netplay_is_client) if (netplay_is_client)