mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-11 08:20:48 +00:00
allow selecting different game types
This commit is contained in:
parent
7f75ed84da
commit
049566cdbb
56 changed files with 436 additions and 207 deletions
|
|
@ -95,14 +95,14 @@ await mapViewer.press(cameraKey);
|
|||
await page.waitForNetworkIdle({ idleTime: 250 });
|
||||
await sleep(100);
|
||||
|
||||
const date = new Date()
|
||||
const date = new Date();
|
||||
const tempDir = path.join(os.tmpdir(), "t2-mapper");
|
||||
|
||||
await fs.mkdir(tempDir, { recursive: true });
|
||||
const filePrefix = date.toISOString().replace(/([:-]|\..*$)/g, '')
|
||||
const filePrefix = date.toISOString().replace(/([:-]|\..*$)/g, "");
|
||||
const outputPath = path.join(
|
||||
tempDir,
|
||||
`${filePrefix}.${missionName}.${cameraNumber}.${outputType}`
|
||||
`${filePrefix}.${missionName}.${cameraNumber}.${outputType}`,
|
||||
);
|
||||
|
||||
// Take screenshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue