Disable pair analysis in Release mode

This commit is contained in:
Loporrit
2025-02-23 12:20:50 +00:00
parent 99eecbdc09
commit 250f61ad85
3 changed files with 8 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ public sealed class PairAnalyzer : DisposableMediatorSubscriberBase
: base(logger, mediator)
{
Pair = pair;
#if DEBUG
Mediator.SubscribeKeyed<PairDataAppliedMessage>(this, pair.UserData.UID, (msg) =>
{
_baseAnalysisCts = _baseAnalysisCts.CancelRecreate();
@@ -36,12 +37,15 @@ public sealed class PairAnalyzer : DisposableMediatorSubscriberBase
_lastDataHash = string.Empty;
}
});
#endif
_fileCacheManager = fileCacheManager;
_xivDataAnalyzer = modelAnalyzer;
#if DEBUG
var lastReceivedData = pair.LastReceivedCharacterData;
if (lastReceivedData != null)
_ = BaseAnalysis(lastReceivedData, _baseAnalysisCts.Token);
#endif
}
public Pair Pair { get; init; }