From a605e7871512394835aed293c9bd066ba96e46e2 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 14 Sep 2018 00:50:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20command=20line=20options?= =?UTF-8?q?=20when=20calling=20patcher-installer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/patcher-installer/launch.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ssn/patcher-installer/launch.ts b/src/ssn/patcher-installer/launch.ts index 7e04207..acad2bb 100644 --- a/src/ssn/patcher-installer/launch.ts +++ b/src/ssn/patcher-installer/launch.ts @@ -7,12 +7,12 @@ const processPath = path.join(__dirname, '../../lib/patcher-installer'); export default function launchProcess(diskFile: string, offset: number, compressedSize: number, decryptionKeys: [number, number, number] | undefined, outputStream: fs.WriteStream) { return new Promise((resolve, reject) => { const parameters = [ - diskFile, - offset, - compressedSize, + '--disk', diskFile, + '--offset', offset, + '--size', compressedSize, ]; if (decryptionKeys !== undefined) { - parameters.push(...decryptionKeys); + parameters.push('--keys', ...decryptionKeys); } const spawnedProcess = childProcess.spawn(processPath, parameters.map((value) => value.toString(), { cwd: '.' }));