mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-24 20:57:45 +08:00
fixed code to work with new resource settings interface.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user