Exemplo n.º 1
0
        /// <summary>
        /// Creates the List for the specific Folder
        /// </summary>
        /// <param name="folder">The Folder with the Character Files</param>
        public SimNames(string folder, Interfaces.Providers.IOpcodeProvider opcodes) : base()
        {
            BaseFolder   = folder;
            this.opcodes = opcodes;

            ArrayList folders = new ArrayList();

            foreach (SimPe.ExpansionItem ei in SimPe.PathProvider.Global.Expansions)
            {
                if (!ei.Exists)
                {
                    continue;
                }

                foreach (string s in ei.SimNameDeepSearch)
                {
                    string path = System.IO.Path.Combine(SimPe.PathProvider.Global.Latest.InstallFolder, s);
                    if (!Directory.Exists(path))
                    {
                        path = System.IO.Path.Combine(ei.InstallFolder, s);
                    }
                    if (Directory.Exists(path))
                    {
                        folders.Add(new SimPe.FileTableItem(path));
                    }
                }
            }


            characterfi = new SimPe.Plugin.FileIndex(folders);
        }
Exemplo n.º 2
0
 public Objd(Interfaces.Providers.IOpcodeProvider opcodes) : base()
 {
     filename     = new byte[0];
     reserved_01  = new byte[0];
     reserved_02  = new byte[0];
     items        = new ArrayList();
     attr         = new Hashtable();
     this.opcodes = opcodes;
     type         = 1;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates the List for the specific Folder
 /// </summary>
 public SimNames(Interfaces.Providers.IOpcodeProvider opcodes) : this("", opcodes)
 {
 }