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 ()
|
public WidgetXP3 ()
|
||||||
{
|
{
|
||||||
|
var last_selected = Properties.Settings.Default.XP3Scheme;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
var keys = new[] { new KeyValuePair<string, ICrypt> (arcStrings.ArcNoEncryption, Xp3Opener.NoCryptAlgorithm) };
|
var keys = new[] { new KeyValuePair<string, ICrypt> (arcStrings.ArcNoEncryption, Xp3Opener.NoCryptAlgorithm) };
|
||||||
this.DataContext = keys.Concat (Xp3Opener.KnownSchemes.OrderBy (x => x.Key));
|
this.DataContext = keys.Concat (Xp3Opener.KnownSchemes.OrderBy (x => x.Key));
|
||||||
this.Loaded += (s, e) => {
|
this.Loaded += (s, e) => {
|
||||||
if (-1 == this.Scheme.SelectedIndex)
|
if (!string.IsNullOrEmpty (last_selected))
|
||||||
|
this.Scheme.SelectedValue = last_selected;
|
||||||
|
else
|
||||||
this.Scheme.SelectedIndex = 0;
|
this.Scheme.SelectedIndex = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ namespace GameRes.Formats.Malie
|
|||||||
public DatOpener ()
|
public DatOpener ()
|
||||||
{
|
{
|
||||||
Extensions = new string[] { "lib", "dat" };
|
Extensions = new string[] { "lib", "dat" };
|
||||||
Signatures = new uint[] { 0, 0x3F503FB1, 0xC237434E };
|
Signatures = new uint[] { 0, 0x3F503FB1, 0xC237434E, 0x8CD11522 };
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ArcFile TryOpen (ArcView file)
|
public override ArcFile TryOpen (ArcView file)
|
||||||
|
|||||||
Binary file not shown.
@@ -127,7 +127,7 @@ namespace GameRes
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsSaneCount (int count)
|
public static bool IsSaneCount (int count)
|
||||||
{
|
{
|
||||||
return count > 0 && count < 0x20000;
|
return count > 0 && count < 0x40000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</Notes>
|
</Notes>
|
||||||
</Release>
|
</Release>
|
||||||
<FormatsData>
|
<FormatsData>
|
||||||
<FileVersion>96</FileVersion>
|
<FileVersion>98</FileVersion>
|
||||||
<Url>https://github.com/morkt/GARbro/raw/master/ArcFormats/Resources/Formats.dat</Url>
|
<Url>https://github.com/morkt/GARbro/raw/master/ArcFormats/Resources/Formats.dat</Url>
|
||||||
<Requires>
|
<Requires>
|
||||||
<Assembly Name="ArcFormats" Version="1.2.36.1546"/>
|
<Assembly Name="ArcFormats" Version="1.2.36.1546"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user