feat: unlock in-game galleries per owned version
CI / frontend (push) Failing after 22s
CI / backend (push) Failing after 42s

This commit is contained in:
mrleo1nid committed 2026-10-27 15:45:22 +03:00
1 parent e14184435c
commit 19924e1c5a
21 files changed
+977 -395

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ const bundle = await build({ entryPoints: [fileURLToPath(new URL("../../src/play
const { Engine } = await import(`data:text/javascript;base64,${Buffer.from(bundle.outputFiles[0].text).toString("base64")}`);
Error.stackTraceLimit = 2; // data-URL bundle frames otherwise print the entire bundle on a failure.
export function makeEngine(runtime) {
export function makeEngine(runtime, manifest = {}) {
const { window, document } = parseHTML("<!doctype html><html><body></body></html>");
const storage = new Map();
Object.assign(globalThis, {
@@ -19,7 +19,7 @@ export function makeEngine(runtime) {
const tr = { lang: "en", renpyName: null, str: (s) => s, line: (_id, s) => s };
const root = document.createElement("div");
document.body.append(root);
const engine = new Engine(root, structuredClone(runtime.game), { files: {} }, structuredClone(runtime.modules),
const engine = new Engine(root, structuredClone(runtime.game), { files: {}, ...manifest }, structuredClone(runtime.modules),
{ list: async () => [], get: async () => null, put: async () => {}, remove: async () => {} },
"runtime-test", () => {}, tr, async () => tr);
return { engine, root, window, document };