Skip to content

Commit 2cdf08e

Browse files
committed
edit: changed file and folder names
1 parent 90d55bc commit 2cdf08e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

main/ftb.js renamed to main/dataToImage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function playSound(times, delay = 500) {
195195
const imageWidth = 1920;
196196
const imageHeight = 1080;
197197
const input = process.argv[2] || prompt("Define input file: ");
198-
const output = path.join(__dirname, "./../out");
198+
const output = path.join(__dirname, "./../images");
199199

200200
fsExtra.emptyDirSync(output);
201201
console.time("Processing Time");

main/btf.js renamed to main/imageToData.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { Worker } = require('worker_threads');
55
const util = require('util');
66
const { exec } = require('child_process');
77

8-
const folderPath = path.join(__dirname, "./../out");
8+
const folderPath = path.join(__dirname, "./../images");
99
const outputFolder = path.join(__dirname, "./../output");
1010
const tempFolder = path.join(__dirname, "./../temp");
1111
const MAX_WORKERS = 24;
@@ -151,7 +151,7 @@ async function main() {
151151
for (let index = 0; index < resolvedResults.length; index++) {
152152
const tempFilePath = resolvedResults[index];
153153
let fileContent = fs.readFileSync(tempFilePath);
154-
const identifyFilePath = path.join(tempFolder, `${path.parse(tempFilePath).name}.identify`);
154+
const identifyFilePath = path.join(tempFolder, `${path.parse(tempFilePath).name}.id`);
155155

156156
if (fs.existsSync(identifyFilePath)) {
157157
const identifyLines = fs.readFileSync(identifyFilePath, 'utf8').split('\n');

workers/imageWorker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function decodeImage(imagePath) {
9494
const buffer = await image.raw().toBuffer();
9595
let nibbles = [];
9696
const binaryFilePath = path.join('./temp', `${path.parse(imagePath).name}.bin`);
97-
const identifyFilePath = path.join('./temp', `${path.parse(imagePath).name}.identify`);
97+
const identifyFilePath = path.join('./temp', `${path.parse(imagePath).name}.id`);
9898
const totalPixels = width * height;
9999
let lastReportedProgress = 0;
100100

0 commit comments

Comments
 (0)