mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-29 09:29:06 +03:00
Changed FSR and DXVK HUD env values
This commit is contained in:
parent
e2754a4eec
commit
edf5e69d8e
4 changed files with 13 additions and 6 deletions
|
@ -29,8 +29,8 @@ Adw.PreferencesPage enhanced_page {
|
||||||
strings [
|
strings [
|
||||||
"Ultra Quality",
|
"Ultra Quality",
|
||||||
"Quality",
|
"Quality",
|
||||||
"Performance",
|
"Balanced",
|
||||||
"Balanced"
|
"Performance"
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ impl HUD {
|
||||||
match self {
|
match self {
|
||||||
Self::None => HashMap::new(),
|
Self::None => HashMap::new(),
|
||||||
Self::DXVK => HashMap::from([
|
Self::DXVK => HashMap::from([
|
||||||
("DXVK_HUD", "1")
|
("DXVK_HUD", "fps,frametimes,version,gpuload")
|
||||||
]),
|
]),
|
||||||
Self::MangoHUD => HashMap::from([
|
Self::MangoHUD => HashMap::from([
|
||||||
("MANGOHUD", "1")
|
("MANGOHUD", "1")
|
||||||
|
|
|
@ -194,7 +194,7 @@ pub struct Fsr {
|
||||||
impl Default for Fsr {
|
impl Default for Fsr {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
strength: 3,
|
strength: 2,
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,14 @@ impl Page {
|
||||||
result.fsr_combo.connect_selected_notify(|hud| {
|
result.fsr_combo.connect_selected_notify(|hud| {
|
||||||
if let Ok(mut config) = config::get() {
|
if let Ok(mut config) = config::get() {
|
||||||
// TODO: show toast
|
// TODO: show toast
|
||||||
config.game.enhancements.fsr.strength = hud.selected();
|
|
||||||
|
// Ultra Quality = 5
|
||||||
|
// Quality = 4
|
||||||
|
// Balanced = 3
|
||||||
|
// Performance = 2
|
||||||
|
//
|
||||||
|
// Source: Bottles (https://github.com/bottlesdevs/Bottles/blob/22fa3573a13f4e9b9c429e4cdfe4ca29787a2832/src/ui/details-preferences.ui#L88)
|
||||||
|
config.game.enhancements.fsr.strength = 5 - hud.selected();
|
||||||
|
|
||||||
config::update(config).unwrap();
|
config::update(config).unwrap();
|
||||||
}
|
}
|
||||||
|
@ -112,7 +119,7 @@ impl Page {
|
||||||
self.sync_combo.set_selected(config.game.wine.sync.into());
|
self.sync_combo.set_selected(config.game.wine.sync.into());
|
||||||
|
|
||||||
// FSR strength selection
|
// FSR strength selection
|
||||||
self.fsr_combo.set_selected(config.game.enhancements.fsr.strength);
|
self.fsr_combo.set_selected(5 - config.game.enhancements.fsr.strength);
|
||||||
|
|
||||||
// FSR switching
|
// FSR switching
|
||||||
self.fsr_switcher.set_state(config.game.enhancements.fsr.enabled);
|
self.fsr_switcher.set_state(config.game.enhancements.fsr.enabled);
|
||||||
|
|
Loading…
Reference in a new issue