internal string AddNCAFile(NCAType type, string file) { if (!NCAs.ContainsKey(type)) { NCAs.Add(type, new List <string>()); } NCAs[type].Add(file); return(file); }
internal string AddNCAByID(NCAType type, string ncaID) { if (!NCAs.ContainsKey(type)) { NCAs.Add(type, new List <string>()); } string file = (type == NCAType.Meta) ? ncaID + ".cnmt.nca" : ncaID + ".nca"; file = this.Directory + Path.DirectorySeparatorChar + file; NCAs[type].Add(file); return(file); }