From 18f9bf8d712ab7c7891e293b1b6e6b6fe2c45a80 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Fri, 18 Jul 2025 12:44:57 +0200 Subject: [PATCH] [ts][canvaskit] Fix headless example. --- spine-ts/spine-canvaskit/example/headless.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-ts/spine-canvaskit/example/headless.js b/spine-ts/spine-canvaskit/example/headless.js index b3accf8f3..ef861a3de 100644 --- a/spine-ts/spine-canvaskit/example/headless.js +++ b/spine-ts/spine-canvaskit/example/headless.js @@ -19,10 +19,10 @@ async function main() { if (!surface) throw new Error(); // Load atlas - const atlas = await loadTextureAtlas(ck, __dirname + "/assets/spineboy.atlas", async (path) => fs.readFileSync(path)); + const atlas = await loadTextureAtlas(ck, __dirname + "/../../assets/spineboy.atlas", async (path) => fs.readFileSync(path)); // Load the skeleton data - const skeletonData = await loadSkeletonData(__dirname + "/assets/spineboy-pro.skel", atlas, async (path) => fs.readFileSync(path)); + const skeletonData = await loadSkeletonData(__dirname + "/../../assets/spineboy-pro.skel", atlas, async (path) => fs.readFileSync(path)); // Create a SkeletonDrawable const drawable = new SkeletonDrawable(skeletonData);