Deleted FantasiaPlusDetectService
This commit is contained in:
@@ -17,7 +17,6 @@ public class PluginStateBlock
|
||||
private readonly BoneEditorPanel _boneEditorPanel;
|
||||
private readonly PluginConfiguration _configuration;
|
||||
private readonly GameStateService _gameStateService;
|
||||
private readonly FantasiaPlusDetectService _fantasiaPlusDetectService;
|
||||
private readonly HookingService _hookingService;
|
||||
private readonly CustomizePlusIpc _ipcService;
|
||||
|
||||
@@ -25,14 +24,12 @@ public class PluginStateBlock
|
||||
BoneEditorPanel boneEditorPanel,
|
||||
PluginConfiguration configuration,
|
||||
GameStateService gameStateService,
|
||||
FantasiaPlusDetectService fantasiaPlusDetectService,
|
||||
HookingService hookingService,
|
||||
CustomizePlusIpc ipcService)
|
||||
{
|
||||
_boneEditorPanel = boneEditorPanel;
|
||||
_configuration = configuration;
|
||||
_gameStateService = gameStateService;
|
||||
_fantasiaPlusDetectService = fantasiaPlusDetectService;
|
||||
_hookingService = hookingService;
|
||||
_ipcService = ipcService;
|
||||
}
|
||||
@@ -47,11 +44,6 @@ public class PluginStateBlock
|
||||
severity = PluginStateSeverity.Error;
|
||||
message = $"Detected failure in game hooks. Customize+ disabled.";
|
||||
}
|
||||
else if (_fantasiaPlusDetectService.IsFantasiaPlusInstalled)
|
||||
{
|
||||
severity = PluginStateSeverity.Error;
|
||||
message = $"Fantasia+ detected. The plugin is disabled until Fantasia+ is disabled and the game is restarted.";
|
||||
}
|
||||
else if (!_configuration.PluginEnabled)
|
||||
{
|
||||
severity = PluginStateSeverity.Warning;
|
||||
|
||||
@@ -31,7 +31,6 @@ public class MainWindow : Window, IDisposable
|
||||
private readonly PluginStateBlock _pluginStateBlock;
|
||||
|
||||
private readonly TemplateEditorManager _templateEditorManager;
|
||||
private readonly FantasiaPlusDetectService _fantasiaPlusDetectService;
|
||||
private readonly PluginConfiguration _configuration;
|
||||
private readonly HookingService _hookingService;
|
||||
|
||||
@@ -46,7 +45,6 @@ public class MainWindow : Window, IDisposable
|
||||
PluginStateBlock pluginStateBlock,
|
||||
TemplateEditorManager templateEditorManager,
|
||||
PluginConfiguration configuration,
|
||||
FantasiaPlusDetectService fantasiaPlusDetectService,
|
||||
HookingService hookingService
|
||||
) : base($"Customize+ v{Plugin.Version}###CPlusMainWindow")
|
||||
{
|
||||
@@ -61,7 +59,6 @@ public class MainWindow : Window, IDisposable
|
||||
|
||||
_templateEditorManager = templateEditorManager;
|
||||
_configuration = configuration;
|
||||
_fantasiaPlusDetectService = fantasiaPlusDetectService;
|
||||
_hookingService = hookingService;
|
||||
|
||||
pluginInterface.UiBuilder.DisableGposeUiHide = true;
|
||||
@@ -83,7 +80,7 @@ public class MainWindow : Window, IDisposable
|
||||
{
|
||||
var yPos = ImGui.GetCursorPosY();
|
||||
|
||||
using (var disabled = ImRaii.Disabled(_fantasiaPlusDetectService.IsFantasiaPlusInstalled || _hookingService.RenderHookFailed || _hookingService.MovementHookFailed))
|
||||
using (var disabled = ImRaii.Disabled(_hookingService.RenderHookFailed || _hookingService.MovementHookFailed))
|
||||
{
|
||||
LockWindowClosureIfNeeded();
|
||||
ImGuiEx.EzTabBar("##tabs", [
|
||||
|
||||
Reference in New Issue
Block a user