renamed Will ARC-related settings and widget.

to distinguish from upcoming ShiinaRio WARC stuff.
This commit is contained in:
morkt 2015-04-19 19:08:56 +04:00
parent 00f5d31d23
commit 1342736ee6
6 changed files with 31 additions and 13 deletions

View File

@ -111,12 +111,12 @@ namespace GameRes.Formats.Will
public override ResourceOptions GetDefaultOptions () public override ResourceOptions GetDefaultOptions ()
{ {
return new ArcOptions { NameLength = Settings.Default.WARCNameLength }; return new ArcOptions { NameLength = Settings.Default.ARCNameLength };
} }
public override object GetCreationWidget () public override object GetCreationWidget ()
{ {
return new GUI.CreateWARCWidget(); return new GUI.CreateARCWidget();
} }
internal class ArcEntry : Entry internal class ArcEntry : Entry

View File

@ -1,4 +1,4 @@
<Grid x:Class="GameRes.Formats.GUI.CreateWARCWidget" <Grid x:Class="GameRes.Formats.GUI.CreateARCWidget"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:GameRes.Formats.Strings" xmlns:s="clr-namespace:GameRes.Formats.Strings"
@ -9,7 +9,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Content="{x:Static s:arcStrings.WARCLabelLength}" Target="{Binding ElementName=NameLength}" Grid.Column="0" Margin="0"/> <Label Content="{x:Static s:arcStrings.WARCLabelLength}" Target="{Binding ElementName=NameLength}" Grid.Column="0" Margin="0"/>
<ComboBox Name="NameLength" Width="40" SelectedValuePath="Content" Grid.Column="1" Margin="8" <ComboBox Name="NameLength" Width="40" SelectedValuePath="Content" Grid.Column="1" Margin="8"
SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=WARCNameLength, Mode=TwoWay}"> SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=ARCNameLength, Mode=TwoWay}">
<ComboBoxItem Content="8"/> <ComboBoxItem Content="8"/>
<ComboBoxItem Content="12"/> <ComboBoxItem Content="12"/>
</ComboBox> </ComboBox>

View File

@ -3,11 +3,11 @@
namespace GameRes.Formats.GUI namespace GameRes.Formats.GUI
{ {
/// <summary> /// <summary>
/// Interaction logic for CreateWARCWidget.xaml /// Interaction logic for CreateARCWidget.xaml
/// </summary> /// </summary>
public partial class CreateWARCWidget : Grid public partial class CreateARCWidget : Grid
{ {
public CreateWARCWidget () public CreateARCWidget ()
{ {
InitializeComponent (); InitializeComponent ();
} }

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.18444 // Runtime Version:4.0.30319.34209
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@ -241,12 +241,12 @@ namespace GameRes.Formats.Properties {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("8")] [global::System.Configuration.DefaultSettingValueAttribute("8")]
public int WARCNameLength { public int ARCNameLength {
get { get {
return ((int)(this["WARCNameLength"])); return ((int)(this["ARCNameLength"]));
} }
set { set {
this["WARCNameLength"] = value; this["ARCNameLength"] = value;
} }
} }
@ -273,5 +273,17 @@ namespace GameRes.Formats.Properties {
this["KCAPScheme"] = value; this["KCAPScheme"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string WARCScheme {
get {
return ((string)(this["WARCScheme"]));
}
set {
this["WARCScheme"] = value;
}
}
} }
} }

View File

@ -56,7 +56,7 @@
<Setting Name="NPAKey2" Type="System.UInt32" Scope="User"> <Setting Name="NPAKey2" Type="System.UInt32" Scope="User">
<Value Profile="(Default)">555831124</Value> <Value Profile="(Default)">555831124</Value>
</Setting> </Setting>
<Setting Name="WARCNameLength" Type="System.Int32" Scope="User"> <Setting Name="ARCNameLength" Type="System.Int32" Scope="User">
<Value Profile="(Default)">8</Value> <Value Profile="(Default)">8</Value>
</Setting> </Setting>
<Setting Name="KCAPPassPhrase" Type="System.String" Scope="User"> <Setting Name="KCAPPassPhrase" Type="System.String" Scope="User">
@ -65,5 +65,8 @@
<Setting Name="KCAPScheme" Type="System.String" Scope="User"> <Setting Name="KCAPScheme" Type="System.String" Scope="User">
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="WARCScheme" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

View File

@ -58,7 +58,7 @@
<setting name="NPAKey2" serializeAs="String"> <setting name="NPAKey2" serializeAs="String">
<value>555831124</value> <value>555831124</value>
</setting> </setting>
<setting name="WARCNameLength" serializeAs="String"> <setting name="ARCNameLength" serializeAs="String">
<value>8</value> <value>8</value>
</setting> </setting>
<setting name="KCAPPassPhrase" serializeAs="String"> <setting name="KCAPPassPhrase" serializeAs="String">
@ -67,6 +67,9 @@
<setting name="KCAPScheme" serializeAs="String"> <setting name="KCAPScheme" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="WARCScheme" serializeAs="String">
<value />
</setting>
</GameRes.Formats.Properties.Settings> </GameRes.Formats.Properties.Settings>
</userSettings> </userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>