Explorer
KNOW-PAT-159

GameTune — Gate compatibilité hardware/OS avant apply tweak

Domaine
dev-general
Type
pattern
Priorité
P1

Parent : [[INDEX-DEV-GENERAL]]

Gate compatibilité hardware avant apply

Problème

Tweaks GPU/OS spécifiques appliqués sur mauvaise machine = registre cassé ou tweak inutile affiché.

Solution

TweakCompatibility centralisé :

  • IsCompatible(tweak, hardware) — version Windows, présence NVIDIA/AMD, SSD vs HDD
  • ResolveRegistryKeyPath() — remplace __NVIDIA_CLASS__ / __AMD_CLASS__ par clés détectées
  • Utilisé dans engine (ApplyAsync) et UI (filtre catalogue, profils grisés)

Un seul gate, pas de logique dupliquée page/engine.

Source projet

  • GameTune/Core/Tweaks/TweakCompatibility.cs
  • GameTune/Views/TweaksPage.xaml.cs

Liens connexes

  • [[KNOW-PAT-156-gametune-json-tweak-catalog|KNOW-PAT-156]]