Very early SevenZip WIP version

This commit is contained in:
gjefferyes
2015-03-18 08:48:48 -05:00
parent 7830068257
commit 5d9d63fb08
55 changed files with 9683 additions and 3477 deletions

View File

@@ -7,6 +7,7 @@
using System;
using System.ComponentModel;
using System.IO;
using System.Text;
using ROMVault2.Properties;
using ROMVault2.RvDB;
using ROMVault2.Utils;
@@ -548,7 +549,7 @@ namespace ROMVault2.DatReaders
int errorCode = IO.FileStream.OpenFileRead(strFilename, out _fileStream);
if (errorCode != 0)
return errorCode;
_streamReader = new StreamReader(_fileStream, Program.Enc);
_streamReader = new StreamReader(_fileStream, Encoding.UTF8);
return 0;
}
public static void Close()
@@ -578,7 +579,7 @@ namespace ROMVault2.DatReaders
while ((_line.Trim().Length == 0) && (!_streamReader.EndOfStream))
{
_line = _streamReader.ReadLine();
_line = (_line??"").Replace("" + (char)9, " ");
_line = (_line ?? "").Replace("" + (char)9, " ");
if (_line.TrimStart().Length > 2 && _line.TrimStart().Substring(0, 2) == @"//") _line = "";
if (_line.TrimStart().Length > 1 && _line.TrimStart().Substring(0, 1) == @"#") _line = "";
if (_line.TrimStart().Length > 1 && _line.TrimStart().Substring(0, 1) == @";") _line = "";