-
Notifications
You must be signed in to change notification settings - Fork 25
Contributors Guide
This document seeks to provide a high level overview of the Helper's functions.
Helper version: 3.1
Note
The setup portion of the script performs dependency checks, initializes variables, and sets configuration options for the rest of the script
Note
These functions aim to provide easy access to actions frequently used by the Helper
- try_exec()
- debug_print()
- message()
- menu()
- menu_loop_done()
- getdirs()
Note
The preflight check is managed by one main function. It calls several auxiliary functions to perform its various actions
- preflight_check()
- lutris_check()
- lutris_detect()
- wine_check()
- get_file_arch()
- memory_check()
- avx_check()
- mapcount_check()
- mapcount_set()
- mapcount_once()
- mapcount_confirm()
- filelimit_check()
- filelimit_set()
- filelimit_confirm()
Note
Downloads are managed by one main function and a secondary function for each download type. It calls several auxiliary functions to perform its various actions
- download_manage()
- runner_manage_wine()
- runner_manage_lutris()
- dxvk_manage_lutris()
- download_select_install()
- download_install()
- download_select_delete()
- download_delete()
- post_download()
- get_lutris_dirs()
- lutris_restart()
- download_file()
Note
The maintenance menu is managed by one main function. It calls several auxiliary functions to perform its various actions
- maintenance_menu()
- version_menu()
- set_version()
- switch_prefix()
- rm_userdir()
- rm_shaders()
- rm_dxvkcache()
- display_dirs()
- display_wiki()
- reset_helper()
Note
These functions handle game installation
- install_game_lutris()
- install_game_wine()
- download_wine()
- download_winetricks()
- install_powershell()
Note
Most of these functions perform actions needed by the Helper
- format_urls()
- get_latest_release()
- referral_randomizer()
- quit()
Note
The main logic of the script begins after all the functions are declared