private static void saveSubsData() { if (!Directory.Exists(SubsSaveDir)) { Directory.CreateDirectory(SubsSaveDir); } IOSerialize.writingJson(subsProfiles[0], SubsSaveDir); }
private static void readSubsData() { string filepath = string.Format("{0}\\{1}.json", SubsSaveDir, Utils.MD5Sum("-")); if (File.Exists(filepath)) { SubsProfile tmp = IOSerialize.readingJson(filepath); subsProfiles[0] = tmp; } }