Modules: don't report errors when condition key is set

This commit is contained in:
李通洲
2025-07-18 16:16:38 +08:00
parent 30af91ce8e
commit c79b67efc1
72 changed files with 72 additions and 72 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ void ffParseMouseJsonObject(FFMouseOptions* options, yyjson_val* module)
yyjson_obj_foreach(module, idx, max, key_, val)
{
const char* key = yyjson_get_str(key_);
if(ffStrEqualsIgnCase(key, "type"))
if(ffStrEqualsIgnCase(key, "type") || ffStrEqualsIgnCase(key, "condition"))
continue;
if (ffJsonConfigParseModuleArgs(key, val, &options->moduleArgs))