Browse Source

added -out support for -x

Nicolas Cannasse 3 years ago
parent
commit
02de112c0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/fmt/pak/Build.hx

+ 1 - 1
hxd/fmt/pak/Build.hx

@@ -207,7 +207,7 @@ class Build {
 				var pakFile = args.shift();
 				var fs = sys.io.File.read(pakFile);
 				var pak = new hxd.fmt.pak.Reader(fs).readHeader();
-				var baseDir = pakFile.substr(0,-4);
+				var baseDir = b.outPrefix == null ? pakFile.substr(0,-4) : b.outPrefix;
 				function extractRec(f:hxd.fmt.pak.Data.File, dir) {
 					#if !dataOnly
 					hxd.System.timeoutTick();