2024-03-10 12:50:25 -05:00
|
|
|
import { readdir } from 'fs/promises';
|
2024-02-20 11:21:01 -06:00
|
|
|
import { argv } from 'process';
|
|
|
|
|
|
|
|
|
|
const isDepot = argv.includes('--depot');
|
2024-08-14 14:04:06 -05:00
|
|
|
|
2024-03-03 16:08:29 -06:00
|
|
|
export const WOTB_WIN32_DEPOT = 444202;
|
2024-08-14 14:04:06 -05:00
|
|
|
|
2024-02-20 11:21:01 -06:00
|
|
|
export const DATA = isDepot
|
2024-03-10 12:50:25 -05:00
|
|
|
? await (async () => {
|
|
|
|
|
const [installationVersion] = await readdir(`depots/${WOTB_WIN32_DEPOT}`);
|
|
|
|
|
return `depots/${WOTB_WIN32_DEPOT}/${installationVersion}/Data`;
|
|
|
|
|
})()
|
2024-02-20 11:21:01 -06:00
|
|
|
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
|