mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 18:25:35 -04:00
netplay: input transforms stay per player online; rollback rows carry rx/ry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1409,7 +1409,7 @@ std::vector<std::string> mod_runtime_netplay_view_features(const ModResolution&
|
||||
for (const ModResolution::Plugin& p : plan.plugins) {
|
||||
const std::string key = p.package_id + "/" + p.feature_id;
|
||||
auto it = ok.find(key);
|
||||
const bool good = p.netplay_local_view;
|
||||
const bool good = p.netplay_local_view || p.netplay_input;
|
||||
ok[key] = it == ok.end() ? good : (it->second && good);
|
||||
}
|
||||
for (const ModResolution::Write& w : plan.writes)
|
||||
@@ -1428,6 +1428,14 @@ std::vector<std::string> mod_runtime_netplay_view_features(const ModResolution&
|
||||
return out;
|
||||
}
|
||||
|
||||
bool mod_runtime_netplay_input_active() {
|
||||
const RuntimeMods& s = state();
|
||||
if (!s.netplay_view_plan || !s.plan.ok) return false;
|
||||
for (const ModResolution::Plugin& p : s.plan.plugins)
|
||||
if (p.netplay_input) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool mod_runtime_netplay_view_active() {
|
||||
const RuntimeMods& s = state();
|
||||
return s.netplay_view_plan && s.plan.ok && !s.plan.plugins.empty();
|
||||
|
||||
Reference in New Issue
Block a user