@energy8platform/game-engine 0.14.8 → 0.14.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/simulate.ts +2 -1
  2. package/package.json +1 -1
package/bin/simulate.ts CHANGED
@@ -4,6 +4,7 @@ import { ParallelSimulationRunner } from '../src/lua/ParallelSimulationRunner';
4
4
  import { NativeSimulationRunner, findNativeBinary, formatNativeResult } from '../src/lua/NativeSimulationRunner';
5
5
  import { cpus } from 'os';
6
6
  import { resolve, dirname } from 'path';
7
+ import { fileURLToPath } from 'url';
7
8
 
8
9
  // ─── Argument Parsing ───────────────────────────────────
9
10
 
@@ -63,7 +64,7 @@ async function main() {
63
64
 
64
65
  // ─── Native binary detection ────────────────────────────
65
66
  // Search in config dir first, then in the game-engine package root
66
- const engineRoot = resolve(__dirname, '..');
67
+ const engineRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
67
68
  const binaryPath = args.binary ?? (useJs ? null : (findNativeBinary(dirname(configPath)) ?? findNativeBinary(engineRoot)));
68
69
 
69
70
  if (useNative && !binaryPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energy8platform/game-engine",
3
- "version": "0.14.8",
3
+ "version": "0.14.9",
4
4
  "description": "Universal casino game engine built on PixiJS v8 and @energy8platform/game-sdk",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",