public static void SetRomLocation(RomVersion version, string path) { var key = version.UniqueKey; XPath romPath = settings.Rom.SingleOrDefault(x => x.key == key); if (romPath == null) { romPath = new XPath { key = key }; settings.Rom.Add(romPath); } romPath.Value = path; settings.SaveToFile(XML_NAME); }
public static void SetRomLocation(string key, RomVersion version, string path) { XPath romPath; romPath = settings.Rom.SingleOrDefault(x => x.key == key); if (romPath == null) { romPath = new XPath { key = key, game = version.Game.ToString(), version = version.ToString() }; settings.Rom.Add(romPath); } romPath.Value = path; settings.SaveToFile(XML_NAME); }