mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Add legacy IPC.
This commit is contained in:
parent
e0447b1ed4
commit
e8096f6e00
4 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit ca919c3f8982ca9990b909a225488ea20a119625
|
||||
Subproject commit a111b1ac2aea59a66861b3132077308a0b75f015
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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<int>(pi, "Glamourer.ApiVersion", () => api.ApiVersion.Major), // backward compatibility
|
||||
IpcSubscribers.ApiVersion.Provider(pi, api),
|
||||
|
||||
IpcSubscribers.GetDesignList.Provider(pi, api.Designs),
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 0c8578cfa12bf0591ed204fd89b30b66719f678f
|
||||
Subproject commit 590629df33f9ad92baddd1d65ec8c986f18d608a
|
||||
Loading…
Add table
Add a link
Reference in a new issue