mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Merge remote-tracking branch 'refs/remotes/origin/master' into res-settings
This commit is contained in:
@@ -15,11 +15,14 @@ namespace GameRes.Formats.GUI
|
||||
{
|
||||
public WidgetXP3 ()
|
||||
{
|
||||
var last_selected = Properties.Settings.Default.XP3Scheme;
|
||||
InitializeComponent();
|
||||
var keys = new[] { new KeyValuePair<string, ICrypt> (arcStrings.ArcNoEncryption, Xp3Opener.NoCryptAlgorithm) };
|
||||
this.DataContext = keys.Concat (Xp3Opener.KnownSchemes.OrderBy (x => x.Key));
|
||||
this.Loaded += (s, e) => {
|
||||
if (-1 == this.Scheme.SelectedIndex)
|
||||
if (!string.IsNullOrEmpty (last_selected))
|
||||
this.Scheme.SelectedValue = last_selected;
|
||||
else
|
||||
this.Scheme.SelectedIndex = 0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace GameRes.Formats.Malie
|
||||
public DatOpener ()
|
||||
{
|
||||
Extensions = new string[] { "lib", "dat" };
|
||||
Signatures = new uint[] { 0, 0x3F503FB1, 0xC237434E };
|
||||
Signatures = new uint[] { 0, 0x3F503FB1, 0xC237434E, 0x8CD11522 };
|
||||
}
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user