-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (21 loc) · 796 Bytes
/
main.py
File metadata and controls
29 lines (21 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
from logger_tt import setup_logging
from functions.downloader import Downloader
from functions.extractor import Extractor
# ch, tw, kr, us, jp
# choose one!
region = 'ch'
out_dir = './assets'
extract_out_dir = './result'
# you can choose what to download.
download = [0, 1]
#0 / BaseAssetBundles = minimal game file needs to boot.
#1 / AddAssetBundles = contains extra assets which requires full-game experience.
#2 / passivityAssetBundles = contains voice, 2K images for hi-res device.
if __name__ == '__main__':
setup_logging(config_path='./log_config.json')
downloader = Downloader(out_dir = out_dir)
extractor = Extractor(out_dir = extract_out_dir)
downloader.download(region = region, download_keys = download)
extractor.extract()
os.system('pause')