public static void OnLoad() { Watcher.Path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); Watcher.NotifyFilter = NotifyFilters.LastWrite; // Add event handlers. Watcher.Changed += OnChanged; // Begin watching. Watcher.EnableRaisingEvents = true; Flatulence_Emit_Patch.SetValues(); }
private static void OnChanged(object source, FileSystemEventArgs a) { Flatulence_Emit_Patch.SetValues(); }