Ejemplo n.º 1
0
        bool include(FileInfo file)
        {
            string dir = file.FullName;

            if (file.Length / 1024 < 10000 && file.Length > 50 && Find_.checkinclude(file.FullName))
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        public bool CheckFile(FileInfo file)
        {
            int d = 0;

            foreach (var w_ in CheckerPlus.Find_.warringsearchfile)
            {
                if (file.Name.ToLower().Contains(w_))
                {
                    switch (w_)
                    {
                    case ".ini":
                        if (Find_.CheckText(file.FullName, Find_.warringtext))
                        {
                            d = 2;
                            goto addf;
                        }
                        break;

                    case ".bat":
                        if (Find_.CheckText(file.FullName, Find_.warringbat))
                        {
                            d = 2;
                            goto addf;
                        }
                        break;

                    default:
                        d = 1;
                        goto addf;
                    }
                }
            }
            if (Find_.checkext(file.FullName) && include(file))
            {
                dllexxs.Add(file);
            }
            return(false);

addf:

            addfile(file, d);

            return(true);
        }
Ejemplo n.º 3
0
 void CheckExtDll()
 {
     new Thread(() =>
     {
         Thread.CurrentThread.Priority     = ThreadPriority.Normal;
         Thread.CurrentThread.IsBackground = true;
         while (true)
         {
             Thread.Sleep(100);
             _A:
             if (dllexxs.Count() > 0)
             {
                 if (Find_.CheckFileInfo(dllexxs[0]) == 3)
                 {
                     addfile(dllexxs[0], 3);
                 }
                 dllexxs.RemoveAt(0);
                 goto _A;
             }
         }
     }).Start();
 }