mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 00:37:49 +00:00
hook up plugin events properly
This commit is contained in:
@@ -79,7 +79,7 @@ class Toaster extends Logger {
|
||||
};
|
||||
instance = findToasterRoot(tree, 0);
|
||||
while (!instance) {
|
||||
this.error(
|
||||
this.warn(
|
||||
'Failed to find Toaster root node, reattempting in 5 seconds. A developer may need to increase the recursion limit.',
|
||||
);
|
||||
await sleep(5000);
|
||||
|
||||
@@ -136,7 +136,7 @@ export class WSRouter extends Logger {
|
||||
if (this.runningCalls.has(data.id)) {
|
||||
this.runningCalls.get(data.id)!.resolve(data.result);
|
||||
this.runningCalls.delete(data.id);
|
||||
this.debug(`Resolved PY call ${data.id} with value`, data.result);
|
||||
this.debug(`[${data.id}] Resolved PY call with value`, data.result);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -145,7 +145,7 @@ export class WSRouter extends Logger {
|
||||
let err = new PyError(data.error.name, data.error.error, data.error.traceback);
|
||||
this.runningCalls.get(data.id)!.reject(err);
|
||||
this.runningCalls.delete(data.id);
|
||||
this.debug(`Rejected PY call ${data.id} with error`, data.error);
|
||||
this.debug(`[${data.id}] Rejected PY call with error`, data.error);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -183,7 +183,7 @@ export class WSRouter extends Logger {
|
||||
|
||||
this.runningCalls.set(id, resolver);
|
||||
|
||||
this.debug(`Calling PY method ${route} with args`, args);
|
||||
this.debug(`[${id}] Calling PY method ${route} with args`, args);
|
||||
|
||||
this.write({ type: MessageType.CALL, route, args, id });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user