mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Improve IPC Providers.
This commit is contained in:
parent
e50474f12d
commit
552338e5b5
2 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ public sealed class IpcProviders : IDisposable, IApiService
|
|||
_initializedProvider = IpcSubscribers.Initialized.Provider(pi);
|
||||
_providers =
|
||||
[
|
||||
new FuncProvider<(int Major, int Minor)>(pi, "Glamourer.ApiVersions", () => api.ApiVersion), // backward compatibility
|
||||
IpcSubscribers.ApiVersion.Provider(pi, api),
|
||||
|
||||
IpcSubscribers.GetDesignList.Provider(pi, api.Designs),
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ public class StateIpcTester : IUiService, IDisposable
|
|||
_pluginInterface = pluginInterface;
|
||||
StateChanged = Api.IpcSubscribers.StateChanged.Subscriber(_pluginInterface, OnStateChanged);
|
||||
GPoseChanged = Api.IpcSubscribers.GPoseChanged.Subscriber(_pluginInterface, OnGPoseChange);
|
||||
StateChanged.Disable();
|
||||
GPoseChanged.Disable();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue