Quick and dirty global setting for forcing un-compression of

sets.
This commit is contained in:
2016-04-17 17:12:48 +01:00
parent 5a93500001
commit a612ea5cfd
7 changed files with 37 additions and 2 deletions

View File

@@ -142,6 +142,8 @@ namespace ROMVault2.DatReaders
}
thisFileType = forceZipping.ToLower() != "no" ? FileType.ZipFile : FileType.File;
if (Settings.FixLevel == eFixLevel.Uncompressed)
thisFileType = FileType.File;
tDir.Dat = tDat;
return true;

View File

@@ -97,7 +97,7 @@ namespace ROMVault2.DatReaders
}
}
thisFileType = FileType.ZipFile;
thisFileType = Settings.FixLevel == eFixLevel.Uncompressed ? FileType.File : FileType.ZipFile;
tDir.Dat = tDat;
return true;

View File

@@ -81,6 +81,8 @@ namespace ROMVault2.DatReaders
thisFileType = FileType.ZipFile;
break;
}
if (Settings.FixLevel == eFixLevel.Uncompressed)
thisFileType = FileType.File;
tDir.Dat = tDat;
return true;

View File

@@ -165,6 +165,8 @@ namespace ROMVault2.DatReaders
// Look for: <notzipped>true</notzipped>
string notzipped = VarFix.String(head.SelectSingleNode("notzipped"));
if (notzipped.ToLower() == "true" || notzipped.ToLower() == "yes") thisFileType = FileType.File;
if (Settings.FixLevel == eFixLevel.Uncompressed)
thisFileType = FileType.File;
tDir.Dat = tDat;
return true;