mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ZIP): added filename encoding setting.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Text;
|
||||
using GameRes.Formats.Strings;
|
||||
|
||||
namespace GameRes.Formats
|
||||
@@ -24,6 +25,18 @@ namespace GameRes.Formats
|
||||
}
|
||||
}
|
||||
|
||||
internal class EncodingSetting : LocalResourceSetting
|
||||
{
|
||||
public override object Value {
|
||||
get { return Encoding.GetEncoding ((int)base.Value); }
|
||||
set { base.Value = ((Encoding)value).CodePage; }
|
||||
}
|
||||
|
||||
public EncodingSetting () { }
|
||||
|
||||
public EncodingSetting (string name) : base (name) { }
|
||||
}
|
||||
|
||||
[Export(typeof(ISettingsManager))]
|
||||
internal class SettingsManager : ISettingsManager
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user