implement playerState
- use IPlayerState for DalamudUtilService and make things less asynced - make LocationInfo work with ContentFinderData
This commit is contained in:
@@ -344,7 +344,7 @@ public sealed class DtrEntry : IDisposable, IHostedService
|
||||
|
||||
try
|
||||
{
|
||||
var cid = _dalamudUtilService.GetCIDAsync().GetAwaiter().GetResult();
|
||||
var cid = _dalamudUtilService.GetCID();
|
||||
var hashedCid = cid.ToString().GetHash256();
|
||||
_localHashedCid = hashedCid;
|
||||
_localHashedCidFetchedAt = now;
|
||||
|
||||
@@ -440,7 +440,7 @@ public class TopTabMenu
|
||||
|
||||
try
|
||||
{
|
||||
var myCidHash = (await _dalamudUtilService.GetCIDAsync().ConfigureAwait(false)).ToString().GetHash256();
|
||||
var myCidHash = _dalamudUtilService.GetCID().ToString().GetHash256();
|
||||
await _apiController.TryPairWithContentId(request.HashedCid).ConfigureAwait(false);
|
||||
_pairRequestService.RemoveRequest(request.HashedCid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user