public override void resetRun() { foreach (PatchOperation current in tests) { try { ModCheckNameClass temp = current as ModCheckNameClass; temp.resetRun(); } catch { } } }
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 = ""; } }
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 { } }
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); }