mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 23:03:59 +00:00
Allow to lock steam controller locking files
- This locks `controller_neptune` configs when adding steam detection - This overwrites default desktop/chord template - This enables a desktop template
This commit is contained in:
parent
cc085bfc2a
commit
19e7ed7012
14 changed files with 279 additions and 23 deletions
|
|
@ -31,6 +31,7 @@ namespace SteamController
|
|||
new Managers.ProcessManager(),
|
||||
new Managers.SteamManager(),
|
||||
new Managers.ProfileSwitcher(),
|
||||
new Managers.SteamConfigsManager(),
|
||||
new Managers.SharedDataManager()
|
||||
}
|
||||
};
|
||||
|
|
@ -231,8 +232,8 @@ namespace SteamController
|
|||
|
||||
ignoreSteamItem.Visible = blacklistedSteamController is not null;
|
||||
useX360WithSteamItem.Visible = blacklistedSteamController is not null;
|
||||
steamSeparatorItem.Visible = blacklistedSteamController is not null;
|
||||
useSteamInputItem.Visible = blacklistedSteamController is not null;
|
||||
steamSeparatorItem.Visible = blacklistedSteamController is not null;
|
||||
|
||||
ignoreSteamItem.Checked = !Settings.Default.EnableSteamDetection || blacklistedSteamController == null;
|
||||
useX360WithSteamItem.Checked = Settings.Default.EnableSteamDetection && blacklistedSteamController == true;
|
||||
|
|
@ -260,6 +261,7 @@ namespace SteamController
|
|||
Helpers.SteamConfiguration.KillSteam();
|
||||
Helpers.SteamConfiguration.WaitForSteamClose(5000);
|
||||
Helpers.SteamConfiguration.BackupSteamConfig();
|
||||
|
||||
var steamControllerUpdate = Helpers.SteamConfiguration.UpdateControllerBlacklist(
|
||||
Devices.SteamController.VendorID,
|
||||
Devices.SteamController.ProductID,
|
||||
|
|
@ -271,7 +273,6 @@ namespace SteamController
|
|||
blacklistX360Controller
|
||||
);
|
||||
Settings.Default.EnableSteamDetection = steamDetection;
|
||||
Settings.Default.Save();
|
||||
|
||||
if (steamControllerUpdate && x360ControllerUpdate)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue