Пример #1
0
 public void RemovePatch(RemotePatch patch)
 {
     if (m_RemotePatches.Contains(patch))
     {
         m_RemotePatches.Remove(patch);
     }
     patch?.InternalRemove();
 }
Пример #2
0
        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);
        }