mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Added unload hook for plugins.
This commit is contained in:
@@ -71,6 +71,15 @@ class PluginWrapper:
|
|||||||
self.log.error("Failed to start " + self.name + "!\n" + format_exc())
|
self.log.error("Failed to start " + self.name + "!\n" + format_exc())
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
def _unload(self):
|
||||||
|
try:
|
||||||
|
self.log.info("Attempting to unload " + self.name + "\n")
|
||||||
|
if hasattr(self.Plugin, "_unload"):
|
||||||
|
self.Plugin._unload(self.Plugin)
|
||||||
|
except:
|
||||||
|
self.log.error("Failed to unload " + self.name + "!\n" + format_exc())
|
||||||
|
exit(0)
|
||||||
|
|
||||||
async def _setup_socket(self):
|
async def _setup_socket(self):
|
||||||
self.socket = await start_unix_server(self._listen_for_method_call, path=self.socket_addr, limit=BUFFER_LIMIT)
|
self.socket = await start_unix_server(self._listen_for_method_call, path=self.socket_addr, limit=BUFFER_LIMIT)
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export interface StorePlugin {
|
|||||||
author: string;
|
author: string;
|
||||||
description: string;
|
description: string;
|
||||||
tags: string[];
|
tags: string[];
|
||||||
|
image_url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LegacyStorePlugin {
|
export interface LegacyStorePlugin {
|
||||||
|
|||||||
Reference in New Issue
Block a user