Include fixed scaled-charge batching profile in netplay compatibility

This commit is contained in:
Matthew Stanley
2026-10-14 23:51:49 -07:00
parent 7fe0414dc0
commit dfd4555d09
4 changed files with 22 additions and 3 deletions
+4 -3
View File
@@ -19631,7 +19631,8 @@ session_reboot:
// exactly as before.
if (psx_guest_cycle_scale_config() != 1u) {
char tag[9];
std::snprintf(tag, sizeof tag, "%08x", 0x6C000000u | psx_guest_cycle_scale_config());
std::snprintf(tag, sizeof tag, "%08x",
psx_gcs_session_profile(psx_guest_cycle_scale_config(), g_psx_gcs_batch));
if (std::strlen(net_cfg.content_fingerprint) != 64)
std::snprintf(net_cfg.content_fingerprint, sizeof(net_cfg.content_fingerprint),
"%s", "0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c00000000");
@@ -19640,8 +19641,8 @@ session_reboot:
auto hv = [](char c) { return c <= '9' ? c - '0' : (c | 0x20) - 'a' + 10; };
*d = "0123456789abcdef"[hv(*d) ^ hv(tag[i])];
}
std::printf("psxrecomp: netplay requires guest_cycle_scale %u on every peer\n",
psx_guest_cycle_scale_config());
std::printf("psxrecomp: netplay requires guest_cycle_scale %u, batch profile %d on every peer\n",
psx_guest_cycle_scale_config(), g_psx_gcs_batch != 0);
}
const int nrc = psx_netplay_start(&net_cfg);
if (nrc != 0) {