Beispiel #1
0
 private void OnWritten(object sender, AddressWrittenEventArgs e)
 {
     if (_cheatsDic.TryGetValue(e.Address, out CheatModel cheat))
     {
         cheat.Value = e.Value;
     }
 }
Beispiel #2
0
 private void OnMemoryWritten(object sender, AddressWrittenEventArgs e)
 {
     foreach (var action in _registerExecActions)
     {
         if (action.Key.ConstainsAddress(e.Address))
         {
             action.Value.Call(e.Address);
         }
     }
 }
Beispiel #3
0
 private void OnWritten(object sender, AddressWrittenEventArgs e)
 {
     if (e.Size == 2)
     {
         _values.TryGetValue(e.Address, out MemorySearchSession value);
         _values[e.Address] = new MemorySearchSession(value.Value, e.Value, 2, value.Changes + 1);
     }
     else
     {
         _values.TryGetValue(e.Address, out MemorySearchSession value);
         _values[e.Address] = new MemorySearchSession(value.PreviousValue, e.Value, 1, value.Changes + 1);
     }
 }