예제 #1
0
 public override void resetRun()
 {
     foreach (PatchOperation current in tests)
     {
         try
         {
             ModCheckNameClass temp = current as ModCheckNameClass;
             temp.resetRun();
         }
         catch { }
     }
 }
예제 #2
0
 public PatchMemoryModule(int index, string owner, PatchOperation patch, bool isModCheckPatch)
 {
     modIndex     = index;
     patchOwner   = owner;
     folderString = isModCheckPatch ? "M " : "P ";
     stopWatch.Reset();
     try
     {
         ModCheckNameClass temp = patch as ModCheckNameClass;
         patchName = temp.getPatchName();
     }
     catch
     {
         patchName = "";
     }
 }
예제 #3
0
 public override void resetRun()
 {
     try
     {
         ModCheckNameClass temp = test as ModCheckNameClass;
         temp.resetRun();
     }
     catch { }
     try
     {
         ModCheckNameClass temp = passed as ModCheckNameClass;
         temp.resetRun();
     }
     catch { }
     try
     {
         ModCheckNameClass temp = failed as ModCheckNameClass;
         temp.resetRun();
     }
     catch { }
 }
예제 #4
0
        protected override bool ApplyWorker(XmlDocument xml)
        {
            if (operation == null)
            {
                Log.Error("[ModCheck] loop set without operation");
                return(false);
            }

            for (int i = 0; i < times; ++i)
            {
                if (reset)
                {
                    try
                    {
                        ModCheckNameClass temp = operation as ModCheckNameClass;
                        temp.resetRun();
                    }
                    catch { }
                }
                operation.Apply(xml);
            }
            return(true);
        }