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

@@ -382,10 +382,10 @@ namespace GameRes.Formats.NitroPlus
public override ResourceOptions GetDefaultOptions ()
{
return new NpaOptions {
Scheme = GetScheme (Settings.Default.NPAScheme),
CompressContents = Settings.Default.NPACompressContents,
Key1 = (int)Settings.Default.NPAKey1,
Key2 = (int)Settings.Default.NPAKey2,
Scheme = GetScheme (Properties.Settings.Default.NPAScheme),
CompressContents = Properties.Settings.Default.NPACompressContents,
Key1 = (int)Properties.Settings.Default.NPAKey1,
Key2 = (int)Properties.Settings.Default.NPAKey2,
};
}

View File

@@ -29,7 +29,6 @@ using System.ComponentModel.Composition;
using System.IO;
using System.IO.Compression;
using System.Security.Cryptography;
using GameRes.Formats.Properties;
using GameRes.Formats.Strings;
using GameRes.Utility;
@@ -202,7 +201,7 @@ namespace GameRes.Formats.NitroPlus
public override ResourceOptions GetDefaultOptions ()
{
return new Npk2Options { Key = GetKey (Settings.Default.NPKScheme) };
return new Npk2Options { Key = GetKey (Properties.Settings.Default.NPKScheme) };
}
public override object GetAccessWidget ()

View File

@@ -30,7 +30,6 @@ using System.Collections.Generic;
using System.ComponentModel.Composition;
using GameRes.Formats.Strings;
using GameRes.Utility;
using GameRes.Formats.Properties;
namespace GameRes.Formats
{
@@ -138,7 +137,7 @@ namespace GameRes.Formats
public override ResourceOptions GetDefaultOptions ()
{
return new SteinsGateOptions {
FileNameEncoding = GetEncoding (Settings.Default.SGFileNameEncoding),
FileNameEncoding = GetEncoding (Properties.Settings.Default.SGFileNameEncoding),
};
}