Dalamud branch detection
This commit is contained in:
@@ -13,6 +13,7 @@ using CustomizePlus.GameData.Data;
|
||||
using Penumbra.GameData.Interop;
|
||||
using Dalamud.Plugin;
|
||||
using CustomizePlus.Core.Helpers;
|
||||
using CustomizePlus.Core.Services.Dalamud;
|
||||
|
||||
namespace CustomizePlus.Core.Services;
|
||||
|
||||
@@ -24,6 +25,7 @@ public class HookingService : IDisposable
|
||||
private readonly ProfileManager _profileManager;
|
||||
private readonly ArmatureManager _armatureManager;
|
||||
private readonly GameStateService _gameStateService;
|
||||
//private readonly DalamudBranchService _dalamudBranchService;
|
||||
private readonly Logger _logger;
|
||||
|
||||
private Hook<RenderDelegate>? _renderManagerHook;
|
||||
@@ -44,6 +46,7 @@ public class HookingService : IDisposable
|
||||
ProfileManager profileManager,
|
||||
ArmatureManager armatureManager,
|
||||
GameStateService gameStateService,
|
||||
//DalamudBranchService dalamudBranchService,
|
||||
Logger logger)
|
||||
{
|
||||
_configuration = configuration;
|
||||
@@ -52,6 +55,7 @@ public class HookingService : IDisposable
|
||||
_profileManager = profileManager;
|
||||
_armatureManager = armatureManager;
|
||||
_gameStateService = gameStateService;
|
||||
//_dalamudBranchService = dalamudBranchService;
|
||||
_logger = logger;
|
||||
|
||||
ReloadHooks();
|
||||
@@ -71,6 +75,9 @@ public class HookingService : IDisposable
|
||||
RenderHookFailed = false;
|
||||
MovementHookFailed = false;
|
||||
|
||||
/*if(_dalamudBranchService.CurrentBranch != DalamudBranchService.DalamudBranch.Release)
|
||||
return;*/
|
||||
|
||||
try
|
||||
{
|
||||
if (_configuration.PluginEnabled)
|
||||
|
||||
Reference in New Issue
Block a user