(AzSys): fixed scheme selection.

This commit is contained in:
morkt 2018-03-11 20:59:40 +04:00
parent a8e7249a10
commit 74e1556291
2 changed files with 6 additions and 4 deletions

View File

@ -69,12 +69,14 @@ namespace GameRes.Formats.AZSys
Extensions = new string[] { "arc" };
}
public static Dictionary<string, uint> KnownKeys = new Dictionary<string, uint>();
static AsbScheme DefaultScheme = new AsbScheme { KnownKeys = new Dictionary<string, uint>() };
public static Dictionary<string, uint> KnownKeys { get { return DefaultScheme.KnownKeys; } }
public override ResourceScheme Scheme
{
get { return new AsbScheme { KnownKeys = KnownKeys }; }
set { KnownKeys = ((AsbScheme)value).KnownKeys; }
get { return DefaultScheme; }
set { DefaultScheme = (AsbScheme)value; }
}
public override ArcFile TryOpen (ArcView file)

View File

@ -3,5 +3,5 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:p="clr-namespace:GameRes.Formats.Properties">
<ComboBox Name="Scheme" Width="180" ItemsSource="{Binding}"
SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=AZScheme, Mode=TwoWay}"/>
SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=AZScriptScheme, Mode=TwoWay}"/>
</StackPanel>