public static List <SkillData> Load() { try { List <SkillData> CustomDefinitions = new List <SkillData>(); if (Directory.Exists(Dir_Definitions)) { var files = Directory.GetFiles(Dir_Definitions); foreach (var file in files) { bool failed; _SkillData _skilldata = BinaryFile.ReadFromFile <_SkillData>(file, out failed); if (!failed) { SkillData newSkillData = Convert_ToClass(_skilldata); CustomDefinitions.Add(newSkillData); } else { _SkillData_int _skilldata_int = BinaryFile.ReadFromFile <_SkillData_int>(file, out failed); SkillData newSkillData = Convert_ToClass(_skilldata_int); CustomDefinitions.Add(newSkillData); } } } return(CustomDefinitions); } catch { return(new List <SkillData>()); } }