mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
14 lines
361 B
TypeScript
14 lines
361 B
TypeScript
import path from "node:path";
|
|
import steamGamesWorkerPath from "./steam-games.worker?modulePath";
|
|
|
|
import Piscina from "piscina";
|
|
|
|
import { seedsPath } from "@main/constants";
|
|
|
|
export const steamGamesWorker = new Piscina({
|
|
filename: steamGamesWorkerPath,
|
|
workerData: {
|
|
steamGamesPath: path.join(seedsPath, "steam-games.json"),
|
|
},
|
|
maxThreads: 1,
|
|
});
|