public override bool Equals(object obj) { if (obj == null) { return(false); } if (!(obj is SwitchTitle)) { return(false); } SwitchTitle other = obj as SwitchTitle; if (TitleID == null && other.TitleID == null) { return(true); } if (TitleID == null || other.TitleID == null) { return(false); } return(TitleID.Equals(other.TitleID)); }
public NSP(SwitchTitle title, string baseDirectory, CNMT cnmt) { this.Title = title; this.CnmtNCA = cnmt.CnmtNcaFilePath; this.CnmtXML = cnmt.GenerateXml(); this.Directory = baseDirectory; this.CNMT = cnmt; AddNCAFile(NCAType.Meta, CnmtNCA); }