using System.Collections.Generic; using System.IO; using System.Text.Json; using CheatScanner.Models; namespace CheatScanner.Services; public static class CheatDatabase { public static (List Rules, string Version) Load(string path) { if (!File.Exists(path)) return (new List(), "not found"); var json = File.ReadAllText(path); var db = JsonSerializer.Deserialize(json); return (db?.Rules ?? new List(), db?.Version ?? "unknown"); } }