Beispiel #1
0
        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));
        }
Beispiel #2
0
        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);
        }