import { runRuntimeAnalysis } from "./adapters/foundry-runtime.js"; import { StorageAuditReportApp } from "./apps/audit-report-app.js"; Hooks.once("init", () => { console.log("kosmos-storage-audit | init"); game.settings.registerMenu("kosmos-storage-audit", "report", { name: localize("KSA.Menu.Name"), label: localize("KSA.Menu.Label"), hint: localize("KSA.Menu.Hint"), icon: "fa-solid fa-broom-ball", type: StorageAuditReportApp, restricted: true }); game.modules.get("kosmos-storage-audit").api = { runRuntimeAnalysis, StorageAuditReportApp }; }); Hooks.once("ready", () => { console.log("kosmos-storage-audit | ready"); }); function localize(key) { return game.i18n?.localize(key) ?? key; }