diff --git a/ArcFormats/KiriKiri/WidgetXP3.xaml.cs b/ArcFormats/KiriKiri/WidgetXP3.xaml.cs index 6fe4c5f4..25c1af8d 100644 --- a/ArcFormats/KiriKiri/WidgetXP3.xaml.cs +++ b/ArcFormats/KiriKiri/WidgetXP3.xaml.cs @@ -15,11 +15,14 @@ namespace GameRes.Formats.GUI { public WidgetXP3 () { + var last_selected = Properties.Settings.Default.XP3Scheme; InitializeComponent(); var keys = new[] { new KeyValuePair (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; }; } diff --git a/ArcFormats/Malie/ArcLIB.cs b/ArcFormats/Malie/ArcLIB.cs index 989285fd..d20c6eba 100644 --- a/ArcFormats/Malie/ArcLIB.cs +++ b/ArcFormats/Malie/ArcLIB.cs @@ -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) diff --git a/ArcFormats/Resources/Formats.dat b/ArcFormats/Resources/Formats.dat index 190723c4..e8920798 100644 Binary files a/ArcFormats/Resources/Formats.dat and b/ArcFormats/Resources/Formats.dat differ diff --git a/GameRes/ArchiveFormat.cs b/GameRes/ArchiveFormat.cs index 70ba2d43..b9e5f4e1 100644 --- a/GameRes/ArchiveFormat.cs +++ b/GameRes/ArchiveFormat.cs @@ -127,7 +127,7 @@ namespace GameRes /// public static bool IsSaneCount (int count) { - return count > 0 && count < 0x20000; + return count > 0 && count < 0x40000; } /// diff --git a/docs/version.xml b/docs/version.xml index 8c2dc8ab..c70b5790 100644 --- a/docs/version.xml +++ b/docs/version.xml @@ -21,7 +21,7 @@ - 96 + 98 https://github.com/morkt/GARbro/raw/master/ArcFormats/Resources/Formats.dat