From 48044259b3afdb65ff21eaab6b058691d8ea7a47 Mon Sep 17 00:00:00 2001 From: AriusII Date: Mon, 21 Sep 2026 21:20:21 +0200 Subject: [PATCH] Rename unusable memory codec context guard --- libs/CheatEngine.Client.Core/Domains/MemoryClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/CheatEngine.Client.Core/Domains/MemoryClient.cs b/libs/CheatEngine.Client.Core/Domains/MemoryClient.cs index 3cbd33e..98e0768 100644 --- a/libs/CheatEngine.Client.Core/Domains/MemoryClient.cs +++ b/libs/CheatEngine.Client.Core/Domains/MemoryClient.cs @@ -770,7 +770,7 @@ public int PointerSize { get { - ThrowIfUsable(); + ThrowIfUnusable(); if (_pointerSize != 0) { return _pointerSize; @@ -784,7 +784,7 @@ public int PointerSize public bool TryReadBytes(Address address, Span destination) { - ThrowIfUsable(); + ThrowIfUnusable(); if (_port.TryReadBytes(address, destination, out string? failure)) { Failure = null; @@ -797,7 +797,7 @@ public bool TryReadBytes(Address address, Span destination) public bool TryWriteBytes(Address address, ReadOnlySpan source) { - ThrowIfUsable(); + ThrowIfUnusable(); if (_port.TryWriteBytes(address, source, out string? failure)) { Failure = null; @@ -821,7 +821,7 @@ internal void Expire() Volatile.Write(ref _expired, 1); } - private void ThrowIfUsable() + private void ThrowIfUnusable() { if (Volatile.Read(ref _expired) != 0 || _activationEpoch != _lifetime.Epoch ||