mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(AzSys): fixed scheme selection.
This commit is contained in:
parent
a8e7249a10
commit
74e1556291
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user