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: '.' }));