Skip to content

Commit b631c1f

Browse files
JoeMattclaude
andcommitted
Report deterministic serialization to enable run-ahead support
Set RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS with no quirk flags, telling RetroArch that save states are complete and deterministic. This enables run-ahead and netplay features that require deterministic save state support. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent cc23e9b commit b631c1f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

libretro.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,13 @@ bool retro_load_game(const struct retro_game_info *info)
953953

954954
environ_cb(RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, desc);
955955

956+
/* Report that save states are deterministic (no quirks).
957+
* This enables run-ahead and netplay in RetroArch. */
958+
{
959+
uint64_t serialization_quirks = 0;
960+
environ_cb(RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS, &serialization_quirks);
961+
}
962+
956963
if (!environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt))
957964
{
958965
//fprintf(stderr, "Pixel format XRGB8888 not supported by platform, cannot use.\n");

0 commit comments

Comments
 (0)