mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 10:38:46 -04:00
Internal resolution becomes a built-in host-only mod; drop the sample-rate setting; host-only mod options editable in netplay
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3291,6 +3291,20 @@ extern "C" int psx_mod_option_live_capable(const char* package_id, const char* f
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" int psx_mod_option_live_host_only(const char* package_id, const char* feature_id) {
|
||||
using namespace PSXRecompV4;
|
||||
if (!package_id || !feature_id) return 0;
|
||||
RuntimeMods& s = state();
|
||||
if (!s.initialized || !s.plan.ok) return 0;
|
||||
bool any = false;
|
||||
for (const ModResolution::Plugin& plugin : s.plan.plugins) {
|
||||
if (plugin.package_id != package_id || plugin.feature_id != feature_id) continue;
|
||||
if (!plugin.netplay_host_only) return 0;
|
||||
any = true;
|
||||
}
|
||||
return any ? 1 : 0;
|
||||
}
|
||||
|
||||
extern "C" int psx_mod_save_selection(void) {
|
||||
using namespace PSXRecompV4;
|
||||
RuntimeMods& s = state();
|
||||
|
||||
Reference in New Issue
Block a user