mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Added limited support for saving ancast key
This commit is contained in:
parent
48b8d7141c
commit
0ac77d90a7
4 changed files with 21 additions and 1 deletions
|
@ -49,6 +49,9 @@
|
|||
<setting name="gczw" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Ancast" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</UWUVCI_AIO_WPF.Properties.Settings>
|
||||
</userSettings>
|
||||
<runtime>
|
||||
|
|
14
UWUVCI AIO WPF/Properties/Settings.Designer.cs
generated
14
UWUVCI AIO WPF/Properties/Settings.Designer.cs
generated
|
@ -12,7 +12,7 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
@ -178,5 +178,17 @@ namespace UWUVCI_AIO_WPF.Properties {
|
|||
this["gczw"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string Ancast {
|
||||
get {
|
||||
return ((string)(this["Ancast"]));
|
||||
}
|
||||
set {
|
||||
this["Ancast"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,5 +41,8 @@
|
|||
<Setting Name="gczw" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="Ancast" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
|
@ -170,6 +170,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
gamepad.ItemsSource = gpEmu;
|
||||
mvm.RomPath = path;
|
||||
mvm.RomSet = true;
|
||||
ancastKey.Text = Settings.Default.Ancast;
|
||||
if (mvm.BaseDownloaded)
|
||||
{
|
||||
mvm.CanInject = true;
|
||||
|
@ -348,6 +349,7 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
|
||||
if (hash == "31-8D-1F-9D-98-FB-08-E7-7C-7F-E1-77-AA-49-05-43")
|
||||
{
|
||||
Settings.Default.Ancast = ancastKey.Text;
|
||||
string[] ancastKeyCopy = { ancastKey.Text };
|
||||
|
||||
Task.Run(() =>
|
||||
|
|
Loading…
Reference in a new issue