mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-22 00:10:27 +01:00
Allow to configure StartupProfile in SteamController.dll.config
This commit is contained in:
parent
717c1e9ba7
commit
aeb035da5d
|
|
@ -15,6 +15,7 @@
|
|||
- Configure Steam to switch between Steam Input or X360 Controller mode
|
||||
- Steam Games detection also works for X360 Controller mode
|
||||
- STEAM+B will kill foreground if hold longer than 3s
|
||||
- Allow to configure `StartupProfile` in `SteamController.dll.config`
|
||||
|
||||
## 0.4.x
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
<setting name="EnableSteamDetection" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="StartupProfile" serializeAs="String">
|
||||
<value>Desktop</value>
|
||||
</setting>
|
||||
</SteamController.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
|
|
@ -125,6 +125,8 @@ namespace SteamController
|
|||
|
||||
stopwatch.Start();
|
||||
|
||||
context.SelectProfile(Settings.Default.StartupProfile);
|
||||
|
||||
contextThread = new Thread(ContextState_Update);
|
||||
contextThread.Start();
|
||||
}
|
||||
|
|
|
|||
12
SteamController/Settings.Designer.cs
generated
12
SteamController/Settings.Designer.cs
generated
|
|
@ -34,5 +34,17 @@ namespace SteamController {
|
|||
this["EnableSteamDetection"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Desktop")]
|
||||
public string StartupProfile {
|
||||
get {
|
||||
return ((string)(this["StartupProfile"]));
|
||||
}
|
||||
set {
|
||||
this["StartupProfile"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,5 +5,8 @@
|
|||
<Setting Name="EnableSteamDetection" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="StartupProfile" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">Desktop</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
Loading…
Reference in a new issue