#[non_exhaustive]#[repr(i32)]pub enum retro_savestate_context {
RETRO_SAVESTATE_CONTEXT_NORMAL = 0,
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_INSTANCE = 1,
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_BINARY = 2,
RETRO_SAVESTATE_CONTEXT_ROLLBACK_NETPLAY = 3,
RETRO_SAVESTATE_CONTEXT_UNKNOWN = 2_147_483_647,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RETRO_SAVESTATE_CONTEXT_NORMAL = 0
Standard savestate written to disk.
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_INSTANCE = 1
Savestate where you are guaranteed that the same instance will load the save state. You can store internal pointers to code or data. It’s still a full serialization and deserialization, and could be loaded or saved at any time. It won’t be written to disk or sent over the network.
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_BINARY = 2
Savestate where you are guaranteed that the same emulator binary will load that savestate. You can skip anything that would slow down saving or loading state but you can not store internal pointers. It won’t be written to disk or sent over the network. Example: “Second Instance” runahead
RETRO_SAVESTATE_CONTEXT_ROLLBACK_NETPLAY = 3
Savestate used within a rollback netplay feature. You should skip anything that would unnecessarily increase bandwidth usage. It won’t be written to disk but it will be sent over the network.
RETRO_SAVESTATE_CONTEXT_UNKNOWN = 2_147_483_647
Ensure sizeof() == sizeof(int).
Trait Implementations§
Source§impl Clone for retro_savestate_context
impl Clone for retro_savestate_context
Source§fn clone(&self) -> retro_savestate_context
fn clone(&self) -> retro_savestate_context
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more