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" };
|
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
|
public override ResourceScheme Scheme
|
||||||
{
|
{
|
||||||
get { return new AsbScheme { KnownKeys = KnownKeys }; }
|
get { return DefaultScheme; }
|
||||||
set { KnownKeys = ((AsbScheme)value).KnownKeys; }
|
set { DefaultScheme = (AsbScheme)value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ArcFile TryOpen (ArcView file)
|
public override ArcFile TryOpen (ArcView file)
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:p="clr-namespace:GameRes.Formats.Properties">
|
xmlns:p="clr-namespace:GameRes.Formats.Properties">
|
||||||
<ComboBox Name="Scheme" Width="180" ItemsSource="{Binding}"
|
<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>
|
</StackPanel>
|
||||||
|
Loading…
Reference in New Issue
Block a user