mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-28 22:57:45 +08:00
fixed code to work with new resource settings interface.
This commit is contained in:
@@ -28,7 +28,6 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using GameRes.Formats.Properties;
|
||||
using GameRes.Formats.Strings;
|
||||
using GameRes.Utility;
|
||||
|
||||
@@ -193,8 +192,8 @@ namespace GameRes.Formats.Dac
|
||||
public override ResourceOptions GetDefaultOptions ()
|
||||
{
|
||||
return new DpkOptions {
|
||||
Key1 = Settings.Default.DPKKey1,
|
||||
Key2 = Settings.Default.DPKKey2,
|
||||
Key1 = Properties.Settings.Default.DPKKey1,
|
||||
Key2 = Properties.Settings.Default.DPKKey2,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -205,9 +204,9 @@ namespace GameRes.Formats.Dac
|
||||
{
|
||||
uint result_key;
|
||||
if (uint.TryParse (widget.Key1.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out result_key))
|
||||
Settings.Default.DPKKey1 = result_key;
|
||||
Properties.Settings.Default.DPKKey1 = result_key;
|
||||
if (uint.TryParse (widget.Key2.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out result_key))
|
||||
Settings.Default.DPKKey2 = result_key;
|
||||
Properties.Settings.Default.DPKKey2 = result_key;
|
||||
}
|
||||
return this.GetDefaultOptions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user