mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(EncodingSetting): fallback to CP932.
This commit is contained in:
@@ -186,18 +186,9 @@ namespace GameRes.Formats.PkWare
|
||||
|
||||
public override ResourceOptions GetDefaultOptions ()
|
||||
{
|
||||
Encoding enc;
|
||||
try
|
||||
{
|
||||
enc = ZipEncoding.Get<Encoding>();
|
||||
}
|
||||
catch
|
||||
{
|
||||
enc = Encodings.cp932;
|
||||
}
|
||||
return new ZipOptions {
|
||||
CompressionLevel = Properties.Settings.Default.ZIPCompression,
|
||||
FileNameEncoding = enc,
|
||||
FileNameEncoding = ZipEncoding.Get<Encoding>(),
|
||||
Password = Properties.Settings.Default.ZIPPassword,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user