chuni: extract avatar face

This commit is contained in:
sk1982 2024-03-17 19:11:51 -04:00
parent e7a283f188
commit 29401b1bb5
2 changed files with 5 additions and 1 deletions

View File

@ -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):

View File

@ -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: