bool include(FileInfo file) { string dir = file.FullName; if (file.Length / 1024 < 10000 && file.Length > 50 && Find_.checkinclude(file.FullName)) { return(true); } return(false); }
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); }
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(); }