Fix Pandora's Box IPC v5.9
authorLiza Carvelli <liza@carvel.li>
Tue, 15 Apr 2025 19:43:49 +0000 (21:43 +0200)
committerLiza Carvelli <liza@carvel.li>
Tue, 15 Apr 2025 19:43:49 +0000 (21:43 +0200)
Directory.Build.targets
Questionable/External/PandorasBoxIpc.cs

index 1b9f8a4..3630c3c 100644 (file)
@@ -1,5 +1,5 @@
 <Project>
     <PropertyGroup Condition="$(MSBuildProjectName) != 'GatheringPathRenderer'">
-        <Version>5.8</Version>
+        <Version>5.9</Version>
     </PropertyGroup>
 </Project>
index e3f902c..01ffdd1 100644 (file)
@@ -8,13 +8,13 @@ namespace Questionable.External;
 internal sealed class PandorasBoxIpc
 {
     private readonly ILogger<PandorasBoxIpc> _logger;
-    private readonly ICallGateSubscriber<string,bool> _getFeatureEnabled;
+    private readonly ICallGateSubscriber<string,bool?> _getFeatureEnabled;
     private bool _loggedIpcError;
 
     public PandorasBoxIpc(IDalamudPluginInterface pluginInterface, ILogger<PandorasBoxIpc> logger)
     {
         _logger = logger;
-        _getFeatureEnabled = pluginInterface.GetIpcSubscriber<string, bool>("PandorasBox.GetFeatureEnabled");
+        _getFeatureEnabled = pluginInterface.GetIpcSubscriber<string, bool?>("PandorasBox.GetFeatureEnabled");
         logger.LogInformation("Pandora's Box auto active time maneuver enabled: {IsAtmEnabled}", IsAutoActiveTimeManeuverEnabled);
     }
 
@@ -24,7 +24,7 @@ internal sealed class PandorasBoxIpc
         {
             try
             {
-                return _getFeatureEnabled.InvokeFunc("Auto Active Time Maneuver");
+                return _getFeatureEnabled.InvokeFunc("Auto Active Time Maneuver") == true;
             }
             catch (IpcError e)
             {