using System.IO; namespace Amanotes { internal static class DevModeGlobalToggle { private static readonly string dir = Path.Combine("Library", "AmaDev"); private static readonly string path = Path.Combine(dir, "dev-mode-enabled.txt"); internal static bool Load() { if (!File.Exists(path)) return false; var text = File.ReadAllText(path).Trim(); return text == "1"; } internal static void Save(bool enabled) { if (!Directory.Exists(dir)) Directory.CreateDirectory(dir); File.WriteAllText(path, enabled ? "1" : "0"); } } }