public static WeaknessIndex LoadWeaknessIndex() { WeaknessIndex w = new WeaknessIndex(); WeaknessSaveFile wsf = new WeaknessSaveFile(); wsf = EncryptionManager.DeCrypt <WeaknessSaveFile>(wPath); w.Index = RetrieveWeaknessKVPs(wsf.Index, wsf); w.Reality = RetrieveWeaknessKVPs(wsf.Reality, wsf); return(w); }
public static void SaveWeaknessIndex(WeaknessIndex w) { WeaknessSaveFile wsf = new WeaknessSaveFile(); if (w.Index.Count > 0) { StoreWeaknessKVPs(w.Index, wsf.Index); } if (w.Reality.Count > 0) { StoreWeaknessKVPs(w.Reality, wsf.Reality); } EncryptionManager.EncryptFile(wPath, wsf); }