fixed code to work with new resource settings interface.

This commit is contained in:
morkt
2018-01-08 20:04:23 +04:00
parent 2e2e447c42
commit cd4e1174af
56 changed files with 179 additions and 158 deletions

View File

@@ -32,7 +32,6 @@ using System.ComponentModel.Composition;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using GameRes.Formats.Strings;
using GameRes.Formats.Properties;
using GameRes.Cryptography;
using GameRes.Utility;
@@ -249,7 +248,7 @@ namespace GameRes.Formats.CatSystem
public override ResourceOptions GetDefaultOptions ()
{
return new IntOptions {
EncryptionInfo = Settings.Default.INTEncryption ?? new IntEncryptionInfo(),
EncryptionInfo = Properties.Settings.Default.INTEncryption ?? new IntEncryptionInfo(),
};
}
@@ -258,7 +257,7 @@ namespace GameRes.Formats.CatSystem
var widget = w as GUI.WidgetINT;
if (null != widget)
{
Settings.Default.INTEncryption = widget.Info;
Properties.Settings.Default.INTEncryption = widget.Info;
return new IntOptions { EncryptionInfo = widget.Info };
}
return this.GetDefaultOptions();