2021-12-26 23:32:01 +03:00
|
|
|
import Configs from './ts/Configs';
|
|
|
|
import constants from './ts/Constants';
|
|
|
|
import promisify from './ts/core/promisify';
|
|
|
|
|
|
|
|
promisify(async () => {
|
|
|
|
Configs.defaults({
|
|
|
|
lang: {
|
|
|
|
launcher: 'en-us',
|
2022-01-03 19:51:32 +03:00
|
|
|
voice: [
|
|
|
|
'en-us'
|
|
|
|
]
|
2021-12-26 23:32:01 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to wine prefix
|
|
|
|
*
|
|
|
|
* @default constants.paths.prefix.default
|
|
|
|
*/
|
|
|
|
prefix: await constants.paths.prefix.default,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Runner name to use, or null if runner is not specified
|
|
|
|
*
|
|
|
|
* @default null
|
|
|
|
*/
|
|
|
|
runner: null,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DXVK name to use, or null if DXVK is not specified
|
|
|
|
*
|
|
|
|
* @default null
|
|
|
|
*/
|
|
|
|
dxvk: null,
|
2022-01-02 12:57:10 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Environment variables
|
|
|
|
*
|
|
|
|
* @default null
|
|
|
|
*/
|
|
|
|
env: null,
|
2021-12-26 23:32:01 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Launcher theme
|
|
|
|
*
|
|
|
|
* Can be "system", "light" and "dark"
|
|
|
|
*
|
|
|
|
* @defaul "system"
|
|
|
|
*/
|
|
|
|
theme: 'system',
|
|
|
|
|
|
|
|
/**
|
|
|
|
* HUD
|
|
|
|
*
|
2021-12-27 17:36:54 +03:00
|
|
|
* "none" if not in use. Otherwise it's "dxvk" or "mangohud"
|
2021-12-26 23:32:01 +03:00
|
|
|
*
|
|
|
|
* @default "none"
|
|
|
|
*/
|
|
|
|
hud: 'none',
|
|
|
|
|
|
|
|
/**
|
|
|
|
* vkBasalt preset to use
|
|
|
|
*
|
2021-12-28 00:17:02 +03:00
|
|
|
* "none" if not in use. Otherwise it should be a folder name from the "shaders" folder
|
2021-12-26 23:32:01 +03:00
|
|
|
*
|
2021-12-28 00:17:02 +03:00
|
|
|
* @default "none"
|
2021-12-26 23:32:01 +03:00
|
|
|
*/
|
2021-12-28 00:17:02 +03:00
|
|
|
shaders: 'none',
|
2021-12-26 23:32:01 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Discord RPC integration
|
|
|
|
*/
|
|
|
|
discord: {
|
|
|
|
/**
|
|
|
|
* If it is enabled
|
|
|
|
*
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
enabled: false,
|
|
|
|
|
|
|
|
// todo
|
|
|
|
texts: {
|
|
|
|
idk: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2021-12-27 17:36:54 +03:00
|
|
|
* If the launcher should use GameMode
|
2021-12-26 23:32:01 +03:00
|
|
|
*
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
gamemode: false,
|
|
|
|
|
|
|
|
/**
|
2021-12-27 17:36:54 +03:00
|
|
|
* If the launcher should unlock FPS
|
2021-12-26 23:32:01 +03:00
|
|
|
*
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
fps_unlocker: false,
|
|
|
|
|
|
|
|
/**
|
2021-12-27 17:36:54 +03:00
|
|
|
* If the launcher should automatically delete DXVK log files
|
2021-12-26 23:32:01 +03:00
|
|
|
*
|
|
|
|
* @default true
|
|
|
|
*/
|
|
|
|
purge_dxvk_logs: true
|
|
|
|
});
|
|
|
|
});
|