protected void _PatchCore(SPatchData Data_) { if (_Data.Data.Version.Main != Data_.Version.Main || _Data.Data.Version.Sub > Data_.Version.Sub) { _Data.Data = Data_; } else { _Data.Data.Version.Sub = Data_.Version.Sub; foreach (var i in Data_.Files) { if (i.Value.IsAdded) { _Data.Data.Files.Add(i.Key, i.Value); } else { _Data.Data.Files.Remove(i.Key); } } } _Data.Save(); }
public void Login(string Nick_) { Nick = Nick_; Logon = true; LastLoginInfo.Data = new SLoginInfo(UID, ID); LastLoginInfo.Save(); }
static void Main(String[] args) { var Option = new COptionStream <SKey>("Option.ini", false); Option.Data.PeerNum = 'q'; Option.Save(); Console.WriteLine(Option.Data); }