mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
import { readdir } from 'fs/promises';
|
|
import { argv } from 'process';
|
|
|
|
const isDepot = argv.includes('--depot');
|
|
|
|
export const DATA = isDepot
|
|
? await (async () => {
|
|
const [installationVersion] = await readdir(`depots/444202`);
|
|
return `depots/444202/${installationVersion}/Data`;
|
|
})()
|
|
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
|