mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-17 10:25:24 +00:00
cleanup, add README
This commit is contained in:
parent
ee6ff28af5
commit
2a7af04023
22 changed files with 46 additions and 17 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import fs from "node:fs/promises";
|
||||
import unzipper from "unzipper";
|
||||
import { normalize } from "@/src/stringUtils";
|
||||
import { normalizePath } from "@/src/stringUtils";
|
||||
import manifest from "@/public/manifest.json";
|
||||
import path from "node:path";
|
||||
|
||||
const inputBaseDir = "rawGameData/base";
|
||||
const outputBaseDir = "public/base";
|
||||
const outputBaseDir = "docs/base";
|
||||
|
||||
const archives = new Map<string, unzipper.CentralDirectory>();
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ async function buildExtractedGameDataFolder() {
|
|||
archives.set(source, archive);
|
||||
}
|
||||
const entry = archive.files.find(
|
||||
(entry) => normalize(entry.path) === filePath
|
||||
(entry) => normalizePath(entry.path) === filePath
|
||||
);
|
||||
const inFile = `${inputBaseDir}/${source}:${filePath}`;
|
||||
if (!entry) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue