Add compatible IPC for now.

This commit is contained in:
Ottermandias 2023-06-22 14:02:36 +02:00
parent 1aba34f34a
commit 63e82d19dc
9 changed files with 392 additions and 305 deletions

View file

@ -186,7 +186,7 @@ public class ItemManager : IDisposable
public bool IsOffhandValid(FullEquipType offType, uint offId, out EquipItem off)
{
off = Resolve(offType, offId);
return off.Valid;
return offType == FullEquipType.Unknown || off.Valid;
}
/// <summary> Returns whether an offhand is valid given mainhand. </summary>

View file

@ -1,4 +1,5 @@
using Dalamud.Plugin;
using Glamourer.Api;
using Glamourer.Designs;
using Glamourer.Events;
using Glamourer.Gui;
@ -99,5 +100,6 @@ public static class ServiceManager
.AddSingleton<PenumbraChangedItemTooltip>();
private static IServiceCollection AddApi(this IServiceCollection services)
=> services.AddSingleton<CommandService>();
=> services.AddSingleton<CommandService>()
.AddSingleton<GlamourerIpc>();
}