diff options
| author | Wayne Heaney <42350981+wheaney@users.noreply.github.com> | 2024-03-13 15:59:22 -0700 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-04-22 13:29:13 -0400 |
| commit | a1a29616e56475d75fce75134c574be3b547950f (patch) | |
| tree | e2d4e25c7f09855c285f6a3243453e310de5d711 /backend/decky_loader/plugin/plugin.py | |
| parent | 6b06bae250f6020b92b49595d601cd196f4d71e0 (diff) | |
| download | decky-loader-a1a29616e56475d75fce75134c574be3b547950f.tar.gz decky-loader-a1a29616e56475d75fce75134c574be3b547950f.zip | |
Add Plugin.uninstall callback support (#555)
* Add Plugin.uninstall callback support
https://github.com/SteamDeckHomebrew/decky-loader/issues/536
* Remove empty deck.sh
Diffstat (limited to 'backend/decky_loader/plugin/plugin.py')
| -rw-r--r-- | backend/decky_loader/plugin/plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/decky_loader/plugin/plugin.py b/backend/decky_loader/plugin/plugin.py index 02d80470..6fa86858 100644 --- a/backend/decky_loader/plugin/plugin.py +++ b/backend/decky_loader/plugin/plugin.py @@ -97,9 +97,9 @@ class PluginWrapper: self._listener_task = create_task(self._response_listener()) return self - def stop(self): + def stop(self, uninstall: bool = False): self._listener_task.cancel() async def _(self: PluginWrapper): - await self._socket.write_single_line(dumps({ "stop": True }, ensure_ascii=False)) + await self._socket.write_single_line(dumps({ "stop": True, "uninstall": uninstall }, ensure_ascii=False)) await self._socket.close_socket_connection() create_task(_(self))
\ No newline at end of file |
