mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-28 10:59:16 -04:00
Live mod options: psx_mod_option_live_capable
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2846,6 +2846,18 @@ extern "C" int psx_mod_register_option_changed_plugin(const char* id,
|
||||
return 1;
|
||||
}
|
||||
|
||||
extern "C" int psx_mod_option_live_capable(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;
|
||||
for (const ModResolution::Plugin& plugin : s.plan.plugins)
|
||||
if (plugin.package_id == package_id && plugin.feature_id == feature_id &&
|
||||
option_changed_plugins().count(plugin.id))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" int psx_mod_set_option_live(const char* package_id, const char* feature_id,
|
||||
const char* option_id, const char* value) {
|
||||
using namespace PSXRecompV4;
|
||||
|
||||
Reference in New Issue
Block a user