Skip to content

Commit

Permalink
fix(compile): don't forget to tell arx-convert about the fts compress…
Browse files Browse the repository at this point in the history
…ion too
  • Loading branch information
meszaros-lajos-gyorgy committed May 25, 2024
1 parent b8fa35b commit 164d986
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ const { through, transformSplitBy, splitAt, transformIdentity } = stream
const compileFTS = async (settings: Settings, fts: ArxFTS) => {
const ftsPath = path.join(settings.outputDir, `game/graph/levels/level${settings.levelIdx}`)

const repackedFts = FTS.save(fts)

if (settings.uncompressedFTS) {
const repackedFts = FTS.save(fts, false)

return fs.promises.writeFile(path.join(ftsPath, 'fast.fts'), repackedFts)
} else {
const repackedFts = FTS.save(fts, true)

const { total: ftsHeaderSize } = getHeaderSize(repackedFts, 'fts')

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 164d986

Please sign in to comment.