diff --git a/examples/test.mpq b/examples/test.mpq new file mode 100644 index 0000000..1ca0e8b Binary files /dev/null and b/examples/test.mpq differ diff --git a/lib/index.js b/lib/index.js index 09f4fad..cdccb7f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -126,7 +126,7 @@ class MPQTool { const workingDir = path.dirname(absoluteDir); // Create the MPQ in the directory's parent - const cmd = `${this.mpqcliPath} create -v ${version} "${dirName}"`; + const cmd = `${this.mpqcliPath} create "${dirName}" ${version === 2 ? '-v2' : ''}`; execSync(cmd, { encoding: 'utf8', maxBuffer: 10 * 1024 * 1024, // 10MB buffer