Skip to content

Commit

Permalink
Revert "zww_extractor.ts now copies the res/* into the output directory"
Browse files Browse the repository at this point in the history
This reverts commit a28b3f5.
  • Loading branch information
themikelester committed Oct 23, 2024
1 parent bc9d19b commit e21426c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ZeldaWindWaker/tools/zww_extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ArrayBufferSlice from "../../ArrayBufferSlice.js";
import * as BYML from "../../byml.js";
import * as Yaz0 from '../../Common/Compression/Yaz0.js';
import * as JKRArchive from "../../Common/JSYSTEM/JKRArchive.js";
import { openSync, readSync, closeSync, readFileSync, writeFileSync, readdirSync, mkdirSync, cpSync } from "fs";
import { openSync, readSync, closeSync, readFileSync, writeFileSync, readdirSync, mkdirSync } from "fs";
import { assertExists, hexzero, assert, readString } from "../../util.js";
import { Endianness } from "../../endian.js";
import { loadRustLib } from "../../rustlib.js";
Expand Down Expand Up @@ -348,7 +348,6 @@ function extractExtra(binaries: Binary[]) {
const data = BYML.write(crg1, BYML.FileType.CRG1);
mkdirSync(pathBaseOut, { recursive: true });
writeFileSync(`${pathBaseOut}/extra.crg1_arc`, Buffer.from(data));
cpSync(`${pathBaseIn}/res`, pathBaseOut, {recursive: true})
}

async function loadBinaries(): Promise<Binary[]> {
Expand Down

0 comments on commit e21426c

Please sign in to comment.