|
8 | 8 |
|
9 | 9 | def is_opt_enabled(app_name): |
10 | 10 | return app_name.lower() in _optimize_default |
| 11 | + |
| 12 | + |
| 13 | +_cyberpunk_sdl = { |
| 14 | + 'de': {'tags': ['voice_de_de'], 'name': 'Deutsch'}, |
| 15 | + 'es': {'tags': ['voice_es_es'], 'name': 'español (España)'}, |
| 16 | + 'fr': {'tags': ['voice_fr_fr'], 'name': 'français'}, |
| 17 | + 'it': {'tags': ['voice_it_it'], 'name': 'italiano'}, |
| 18 | + 'ja': {'tags': ['voice_ja_jp'], 'name': '日本語'}, |
| 19 | + 'ko': {'tags': ['voice_ko_kr'], 'name': '한국어'}, |
| 20 | + 'pl': {'tags': ['voice_pl_pl'], 'name': 'polski'}, |
| 21 | + 'pt': {'tags': ['voice_pt_br'], 'name': 'português brasileiro'}, |
| 22 | + 'ru': {'tags': ['voice_ru_ru'], 'name': 'русский'}, |
| 23 | + 'zh': {'tags': ['voice_zh_cn'], 'name': '中文(中国)'} |
| 24 | +} |
| 25 | + |
| 26 | + |
| 27 | +def cyber_prompt_2077(): |
| 28 | + print('You are about to install Cyberpunk 2077, this game supports selective downloads for langauge packs.') |
| 29 | + print('The following language packs are available:') |
| 30 | + for tag, info in _cyberpunk_sdl.items(): |
| 31 | + print(' *', tag, '-', info['name']) |
| 32 | + |
| 33 | + print('Please enter a comma-separated list of language packs to install (leave blank for english only)') |
| 34 | + choices = input('Additional languages [e.g. de,fr]: ') |
| 35 | + if not choices: |
| 36 | + return [''] |
| 37 | + |
| 38 | + tags = [''] |
| 39 | + for c in choices.split(','): |
| 40 | + c = c.strip() |
| 41 | + if c in _cyberpunk_sdl: |
| 42 | + tags.extend(_cyberpunk_sdl[c]['tags']) |
| 43 | + else: |
| 44 | + print('Invalid tag:', c) |
| 45 | + |
| 46 | + return tags |
0 commit comments