mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-09 23:29:07 +08:00
Fix SharpZip.StringCodec warning
This commit is contained in:
@@ -89,8 +89,8 @@ namespace GameRes.Formats.AirNovel
|
||||
SharpZip.ZipFile zip = null;
|
||||
try
|
||||
{
|
||||
SharpZip.ZipStrings.CodePage = Encoding.UTF8.CodePage;
|
||||
zip = new SharpZip.ZipFile (input);
|
||||
var sc = SharpZip.StringCodec.FromCodePage (Encoding.UTF8.CodePage);
|
||||
zip = new SharpZip.ZipFile (input, false, sc);
|
||||
var files = zip.Cast<SharpZip.ZipEntry>().Where (z => !z.IsDirectory);
|
||||
bool has_encrypted = false;
|
||||
var dir = new List<Entry>();
|
||||
|
||||
@@ -126,8 +126,8 @@ namespace GameRes.Formats.PkWare
|
||||
|
||||
internal ArcFile OpenZipArchive (ArcView file, Stream input)
|
||||
{
|
||||
SharpZip.ZipStrings.CodePage = Properties.Settings.Default.ZIPEncodingCP;
|
||||
var zip = new SharpZip.ZipFile (input);
|
||||
var sc = SharpZip.StringCodec.FromCodePage (Properties.Settings.Default.ZIPEncodingCP);
|
||||
var zip = new SharpZip.ZipFile (input, false, sc);
|
||||
try
|
||||
{
|
||||
var files = zip.Cast<SharpZip.ZipEntry>().Where (z => !z.IsDirectory);
|
||||
|
||||
@@ -102,8 +102,8 @@ namespace GameRes.Formats.VnMaker
|
||||
|
||||
internal ArcFile OpenZipArchive (ArcView file, Stream input)
|
||||
{
|
||||
SharpZip.ZipStrings.CodePage = Properties.Settings.Default.ZIPEncodingCP;
|
||||
var zip = new SharpZip.ZipFile (input);
|
||||
var sc = SharpZip.StringCodec.FromCodePage (Properties.Settings.Default.ZIPEncodingCP);
|
||||
var zip = new SharpZip.ZipFile (input, false, sc);
|
||||
try
|
||||
{
|
||||
var files = zip.Cast<SharpZip.ZipEntry>().Where (z => !z.IsDirectory);
|
||||
|
||||
Reference in New Issue
Block a user