chuni: extract avatar face
This commit is contained in:
parent
e7a283f188
commit
29401b1bb5
@ -43,6 +43,7 @@ class Chuni(Extracter):
|
||||
|
||||
texture = self.data_dir / 'surfboard' / 'texture'
|
||||
yield self.process_image, texture / 'CHU_UI_Common_Avatar_body_00.dds', self.out_dir / 'avatar' / 'CHU_UI_Common_Avatar_body_00.dds', 'images'
|
||||
yield self.process_image, texture / 'CHU_UI_Common_Avatar_face_00.dds', self.out_dir / 'avatar' / 'CHU_UI_Common_Avatar_face_00.dds', 'images'
|
||||
yield self.process_image, texture / 'CHU_UI_title_rank_00_v10.dds', self.out_dir / 'trophy' / 'CHU_UI_title_rank_00_v10.dds', 'images'
|
||||
|
||||
def extract_jacket(self):
|
||||
|
@ -69,6 +69,9 @@ class Extracter:
|
||||
def ffmpeg(self, input_args, media_type, output_name):
|
||||
buffer_input = None
|
||||
input_args = list(input_args)
|
||||
out_path = Path(output_name).with_suffix(self.config[media_type]['extension'])
|
||||
if self.no_overwrite and out_path.exists():
|
||||
return
|
||||
|
||||
for i, arg in enumerate(input_args):
|
||||
if type(arg) == bytes:
|
||||
@ -87,7 +90,7 @@ class Extracter:
|
||||
'error',
|
||||
*input_args,
|
||||
*self.config[media_type].get('ffmpeg_args', []),
|
||||
Path(output_name).with_suffix(self.config[media_type]['extension'])
|
||||
out_path
|
||||
]
|
||||
|
||||
if buffer_input:
|
||||
|
Loading…
Reference in New Issue
Block a user