Skip to content

Commit e5d428a

Browse files
committed
Add --outdir argument to unityextract
1 parent 5f3ddc7 commit e5d428a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/unityextract

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class UnityExtract:
3131
p.add_argument("--shaders", action="store_true")
3232
p.add_argument("--text", action="store_true")
3333
p.add_argument("--video", action="store_true")
34+
p.add_argument("--outdir", nargs="?", default="")
3435
self.args = p.parse_args(args)
3536

3637
self.handle_formats = []
@@ -55,7 +56,7 @@ class UnityExtract:
5556
return 0
5657

5758
def get_output_path(self, filename):
58-
basedir = "out"
59+
basedir = self.args.outdir
5960
path = os.path.join(basedir, filename)
6061
dirs = os.path.dirname(path)
6162
if not os.path.exists(dirs):

0 commit comments

Comments
 (0)