public void RemovePatch(RemotePatch patch) { if (m_RemotePatches.Contains(patch)) { m_RemotePatches.Remove(patch); } patch?.InternalRemove(); }
public RemotePatch CreatePatch(string name, IntPtr address, byte[] patchBytes, bool apply = true, bool mustBeDisposed = true) { var patch = new RemotePatch(m_Process, name, address, patchBytes, mustBeDisposed); if (apply) { patch.Apply(); } m_RemotePatches.Add(patch); return(patch); }