mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-03-15 14:38:29 +03:00
Added automatic DXVK_ASYNC=1
setting for dxvk-async
This commit is contained in:
parent
4a83100b7e
commit
85b2e6741e
2 changed files with 8 additions and 1 deletions
|
@ -127,7 +127,7 @@ Adw.PreferencesPage page {
|
|||
|
||||
Adw.ExpanderRow dxvk_async {
|
||||
title: "Async";
|
||||
subtitle: "This version is not recommended for usage as can lead to anti-cheat detection";
|
||||
subtitle: "This version is not recommended for usage as can lead to anti-cheat detection. Automatically uses DXVK_ASYNC=1";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,13 @@ pub fn run(debug: bool) -> Result<(), Error> {
|
|||
|
||||
command.env("WINEPREFIX", &config.game.wine.prefix);
|
||||
|
||||
// Add DXVK_ASYNC=1 for dxvk-async builds automatically
|
||||
if let Some(dxvk) = config.game.dxvk.selected {
|
||||
if dxvk.contains("async") {
|
||||
command.env("DXVK_ASYNC", "1");
|
||||
}
|
||||
}
|
||||
|
||||
command.envs(config.game.wine.sync.get_env_vars());
|
||||
command.envs(config.game.enhancements.hud.get_env_vars());
|
||||
command.envs(config.game.enhancements.fsr.get_env_vars());
|
||||
|
|
Loading…
Add table
Reference in a new issue