Space System refactor

This commit is contained in:
Zef Hemel
2022-11-26 14:15:38 +01:00
parent 80a2d4e58a
commit eff0277be0
7 changed files with 290 additions and 223 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
import { Plug } from "../../plugos/plug.ts";
import { SysCallMapping, System } from "../../plugos/system.ts";
import type { HttpServer } from "../http_server.ts";
export function systemSyscalls(
httpServer: HttpServer,
plugReloader: () => Promise<void>,
system: System<any>,
): SysCallMapping {
return {
@@ -30,7 +29,7 @@ export function systemSyscalls(
return plug.invoke(name, args);
},
"system.reloadPlugs": () => {
return httpServer.reloadPlugs();
return plugReloader();
},
};
}