chore: automatically start/stop otd on osu launch/close

This commit is contained in:
HorizonCode committed 2026-05-25 21:53:42 +02:00
1 parent 1467d3e296
commit d0b0011910
5 files changed
+165

No files matched your search

+3
View File
@@ -37,6 +37,9 @@ custom_theme_volume.subscribe((val) => {
}
});
export const openTabletDriverEnabled = writable<boolean>(false);
export const openTabletDriverPath = writable<string>('');
export const serverPing = writable<number | undefined>(undefined);
export const serverConnectionFails = writable(0);
+3
View File
@@ -146,3 +146,6 @@ export const getSkins = async (folder: string) =>
'get_skins',
{ folder }
);
export const startOpenTabletDriver = async (otdDaemonPath: string) =>
await invoke('run_open_tablet_driver', { path: otdDaemonPath });
export const stopOpenTabletDriver = async (otdDaemonPath: string) => await invoke('stop_open_tablet_driver', { path: otdDaemonPath });