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-02-20 11:21:01 -06:00
|
|
|
export const DATA = isDepot
|
2024-03-10 12:50:25 -05:00
|
|
|
? await (async () => {
|
2024-10-21 11:31:17 -05:00
|
|
|
const [installationVersion] = await readdir(`../../depots/444202`);
|
|
|
|
|
return `../../depots/444202/${installationVersion}/Data`;
|
2024-03-10 12:50:25 -05:00
|
|
|
})()
|
2024-02-20 11:21:01 -06:00
|
|
|
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
|