mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:57:23 +01:00
fix edit transfer window, more crashfix, add version nag on connect
This commit is contained in:
parent
640adc124e
commit
2b777f94f1
6 changed files with 34 additions and 19 deletions
|
|
@ -105,25 +105,17 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
|||
{
|
||||
return await _dalamudUtil.RunOnFrameworkThread(() =>
|
||||
{
|
||||
nint curPtr = IntPtr.Zero;
|
||||
try
|
||||
var curPtr = _getAddress.Invoke();
|
||||
|
||||
if (curPtr == IntPtr.Zero)
|
||||
{
|
||||
curPtr = CurrentAddress().GetAwaiter().GetResult();
|
||||
|
||||
if (curPtr == IntPtr.Zero) return true;
|
||||
|
||||
var drawObj = GetDrawObj(curPtr);
|
||||
return IsBeingDrawn(drawObj, curPtr);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
if (curPtr != IntPtr.Zero)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Address = IntPtr.Zero;
|
||||
DrawObjectAddress = IntPtr.Zero;
|
||||
return false;
|
||||
}
|
||||
|
||||
var drawObj = GetDrawObj(curPtr);
|
||||
return IsBeingDrawn(drawObj, curPtr);
|
||||
}).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,6 +195,10 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
{
|
||||
throw new InvalidOperationException("Player name not equal to requested name, pointer invalid");
|
||||
}
|
||||
if (handler.Address == IntPtr.Zero)
|
||||
{
|
||||
throw new InvalidOperationException("Player pointer is zero, pointer invalid");
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ApplyBaseData(Guid applicationId, Dictionary<string, string> moddedPaths, string manipulationData, CancellationToken token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue