Esempio n. 1
0
        internal string AddNCAFile(NCAType type, string file)
        {
            if (!NCAs.ContainsKey(type))
            {
                NCAs.Add(type, new List <string>());
            }

            NCAs[type].Add(file);

            return(file);
        }
Esempio n. 2
0
        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);
        }