Parent : [[INDEX-DEV-GENERAL]]
Catalogue tweaks JSON avec validation souple
Problème
Des dizaines de tweaks système doivent évoluer sans recompiler ; un JSON invalide ne doit pas crasher l'app.
Solution
Un fichier JSON par tweak (Data/Tweaks/*.json). Chargement avec désérialisation tolérante, validation id/name/unicité, warnings non fatals loggés (catalog-warnings.log). Profils séparés référencent des tweak IDs.
Champs clés : risk, requiresAdmin, requiresReboot, whatYouLose, expectedEffect, registry[] ou powerShellApply/powerShellRevert.
Exemple
{
"id": "network-tcp-gaming",
"name": "Optimisation TCP gaming",
"risk": "Yellow",
"whatYouLose": "Comportement TCP par défaut Windows",
"registry": [],
"powerShellApply": "netsh int tcp set global ..."
}
Source projet
GameTune/Core/Tweaks/TweakEngine.cs(TweakCatalog)GameTune/Data/Tweaks/network-tcp-gaming.json