From e8096f6e009a612f410428254642e1ed6c7ec16f Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Tue, 23 Apr 2024 15:13:09 +0200 Subject: [PATCH] Add legacy IPC. --- Glamourer.Api | 2 +- Glamourer/Api/GlamourerApi.cs | 2 +- Glamourer/Api/IpcProviders.cs | 1 + Penumbra.Api | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Glamourer.Api b/Glamourer.Api index ca919c3..a111b1a 160000 --- a/Glamourer.Api +++ b/Glamourer.Api @@ -1 +1 @@ -Subproject commit ca919c3f8982ca9990b909a225488ea20a119625 +Subproject commit a111b1ac2aea59a66861b3132077308a0b75f015 diff --git a/Glamourer/Api/GlamourerApi.cs b/Glamourer/Api/GlamourerApi.cs index 4be328c..e08537a 100644 --- a/Glamourer/Api/GlamourerApi.cs +++ b/Glamourer/Api/GlamourerApi.cs @@ -5,7 +5,7 @@ namespace Glamourer.Api; public class GlamourerApi(DesignsApi designs, StateApi state, ItemsApi items) : IGlamourerApi, IApiService { - public const int CurrentApiVersionMajor = 1; + public const int CurrentApiVersionMajor = 2; public const int CurrentApiVersionMinor = 0; public (int Major, int Minor) ApiVersion diff --git a/Glamourer/Api/IpcProviders.cs b/Glamourer/Api/IpcProviders.cs index 62e3ca1..3852fd6 100644 --- a/Glamourer/Api/IpcProviders.cs +++ b/Glamourer/Api/IpcProviders.cs @@ -19,6 +19,7 @@ public sealed class IpcProviders : IDisposable, IApiService _providers = [ new FuncProvider<(int Major, int Minor)>(pi, "Glamourer.ApiVersions", () => api.ApiVersion), // backward compatibility + new FuncProvider(pi, "Glamourer.ApiVersion", () => api.ApiVersion.Major), // backward compatibility IpcSubscribers.ApiVersion.Provider(pi, api), IpcSubscribers.GetDesignList.Provider(pi, api.Designs), diff --git a/Penumbra.Api b/Penumbra.Api index 0c8578c..590629d 160000 --- a/Penumbra.Api +++ b/Penumbra.Api @@ -1 +1 @@ -Subproject commit 0c8578cfa12bf0591ed204fd89b30b66719f678f +Subproject commit 590629df33f9ad92baddd1d65ec8c986f18d608a