implemented external storage of resource schemes.

This commit is contained in:
morkt
2015-09-18 01:27:53 +04:00
parent eef86f0804
commit 9a8bff184d
32 changed files with 478 additions and 1431 deletions

View File

@@ -1,4 +1,7 @@
using System.Windows.Controls;
using GameRes.Formats.Entis;
using GameRes.Formats.Strings;
using System.Linq;
using System.Windows.Controls;
namespace GameRes.Formats.GUI
{
@@ -10,6 +13,8 @@ namespace GameRes.Formats.GUI
public WidgetNOA ()
{
InitializeComponent ();
var keys = new string[] { arcStrings.NOAIgnoreEncryption };
Scheme.ItemsSource = keys.Concat (NoaOpener.KnownKeys.Keys.OrderBy (x => x));
// select first scheme as default
if (-1 == Scheme.SelectedIndex)
Scheme.SelectedIndex = 0;