mirror of
https://github.com/SabreTools/MPF.git
synced 2026-04-05 22:01:16 +00:00
Update packages
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
- Update Portuguese translation
|
||||
- Compress fixed SS
|
||||
- Only print BCA for nintendo dumps
|
||||
- Update packages
|
||||
|
||||
### 3.6.0 (2025-11-28)
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.3.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="SabreTools.RedumpLib" Version="[1.10.0]" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.3.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="SabreTools.RedumpLib" Version="[1.10.0]" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BinaryObjectScanner" Version="[3.5.0]" />
|
||||
<PackageReference Include="LibIRD" Version="[1.0.1]" />
|
||||
<PackageReference Include="BinaryObjectScanner" Version="[3.6.0]" />
|
||||
<PackageReference Include="LibIRD" Version="[1.0.3]" />
|
||||
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))" />
|
||||
<PackageReference Include="Microsoft.Net.Http" Version="2.2.29" Condition="$(TargetFramework.StartsWith(`net452`))" />
|
||||
<PackageReference Include="MinThreadingBridge" Version="0.11.4" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))" />
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="Microsoft.CodeCoverage" Version="18.3.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="SabreTools.RedumpLib" Version="[1.10.0]" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
|
||||
@@ -16,7 +16,7 @@ using Schemas;
|
||||
#if NET462_OR_GREATER || NETCOREAPP
|
||||
using SharpCompress.Archives;
|
||||
using SharpCompress.Archives.Zip;
|
||||
using SharpCompress.Common;
|
||||
using SharpCompress.Readers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0618 // Ignore "Type or member is obsolete"
|
||||
@@ -54,10 +54,10 @@ namespace MPF.Processors
|
||||
ZipArchive? logArchive = null;
|
||||
try
|
||||
{
|
||||
logArchive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
logArchive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip", new ReaderOptions { ExtractFullPath = false, Overwrite = true});
|
||||
string sidecarName = $"{Path.GetFileNameWithoutExtension(outputFilename)}.cicm.xml";
|
||||
var sidecarEntry = logArchive.Entries.FirstOrDefault(e => e.Key == sidecarName && !e.IsDirectory);
|
||||
sidecarEntry?.WriteToFile(sidecarPath, new ExtractionOptions { ExtractFullPath = false, Overwrite = true });
|
||||
sidecarEntry?.WriteToFile(sidecarPath);
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace MPF.Processors
|
||||
bool disposed = false;
|
||||
try
|
||||
{
|
||||
zf = ZipArchive.Create();
|
||||
zf = (ZipArchive)ZipArchive.CreateArchive();
|
||||
|
||||
List<string> successful = AddToArchive(zf, zippableFiles, outputDirectory);
|
||||
_ = AddToArchive(zf, generatedFiles, outputDirectory);
|
||||
@@ -141,7 +141,7 @@ namespace MPF.Processors
|
||||
zf.SaveTo(archiveName, new ZipWriterOptions(CompressionType.Deflate, CompressionLevel.BestCompression) { UseZip64 = true });
|
||||
break;
|
||||
case LogCompression.Zstd19:
|
||||
zf.SaveTo(archiveName, new ZipWriterOptions(CompressionType.ZStandard, (CompressionLevel)19) { UseZip64 = true, CompressionBufferSize = 0x20000 });
|
||||
zf.SaveTo(archiveName, new ZipWriterOptions(CompressionType.ZStandard, (CompressionLevel)19) { UseZip64 = true });
|
||||
break;
|
||||
case LogCompression.DeflateDefault:
|
||||
default:
|
||||
@@ -248,7 +248,7 @@ namespace MPF.Processors
|
||||
try
|
||||
{
|
||||
// Try to open the archive
|
||||
logArchive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
logArchive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip");
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -325,7 +325,7 @@ namespace MPF.Processors
|
||||
ZipArchive? logArchive = null;
|
||||
try
|
||||
{
|
||||
logArchive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
logArchive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip");
|
||||
foreach (var outputFile in outputFiles)
|
||||
{
|
||||
outputFile.Extract(logArchive, outputDirectory ?? string.Empty);
|
||||
|
||||
@@ -12,7 +12,7 @@ using SabreTools.RedumpLib.Data;
|
||||
#if NET462_OR_GREATER || NETCOREAPP
|
||||
using SharpCompress.Archives;
|
||||
using SharpCompress.Archives.Zip;
|
||||
using SharpCompress.Common;
|
||||
using SharpCompress.Readers;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -94,10 +94,10 @@ namespace MPF.Processors
|
||||
ZipArchive? logArchive = null;
|
||||
try
|
||||
{
|
||||
logArchive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
logArchive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip", new ReaderOptions { ExtractFullPath = false, Overwrite = true});
|
||||
string discName = $"{Path.GetFileNameWithoutExtension(outputFilename)}_disc.txt";
|
||||
var discEntry = logArchive.Entries.FirstOrDefault(e => e.Key == discName && !e.IsDirectory);
|
||||
discEntry?.WriteToFile(discPath, new ExtractionOptions { ExtractFullPath = false, Overwrite = true });
|
||||
discEntry?.WriteToFile(discPath);
|
||||
}
|
||||
catch { }
|
||||
|
||||
@@ -342,7 +342,7 @@ namespace MPF.Processors
|
||||
if (File.Exists($"{basePath}_suppl.dat"))
|
||||
{
|
||||
var suppl = ProcessingTool.GetDatafile($"{basePath}_suppl.dat");
|
||||
if (GetXGDAuxHashInfo(suppl, out var xgd1DMIHash, out var xgd1PFIHash, out var xgd1SSHash))
|
||||
if (GetXGDAuxHashInfo(suppl, out var xgd1DMIHash, out var xgd1PFIHash, out _))
|
||||
{
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.DMIHash] = xgd1DMIHash ?? string.Empty;
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.PFIHash] = xgd1PFIHash ?? string.Empty;
|
||||
@@ -357,7 +357,7 @@ namespace MPF.Processors
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetXGDAuxInfo($"{basePath}_disc.txt", out var xgd1DMIHash, out var xgd1PFIHash, out var xgd1SSHash, out var xgd1SS))
|
||||
if (GetXGDAuxInfo($"{basePath}_disc.txt", out var xgd1DMIHash, out var xgd1PFIHash, out _, out var xgd1SS))
|
||||
{
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.DMIHash] = xgd1DMIHash ?? string.Empty;
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.PFIHash] = xgd1PFIHash ?? string.Empty;
|
||||
@@ -407,7 +407,7 @@ namespace MPF.Processors
|
||||
if (File.Exists($"{basePath}_suppl.dat"))
|
||||
{
|
||||
var suppl = ProcessingTool.GetDatafile($"{basePath}_suppl.dat");
|
||||
if (GetXGDAuxHashInfo(suppl, out var xgd23DMIHash, out var xgd23PFIHash, out var xgd23SSHash))
|
||||
if (GetXGDAuxHashInfo(suppl, out var xgd23DMIHash, out var xgd23PFIHash, out _))
|
||||
{
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.DMIHash] = xgd23DMIHash ?? string.Empty;
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.PFIHash] = xgd23PFIHash ?? string.Empty;
|
||||
@@ -422,7 +422,7 @@ namespace MPF.Processors
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetXGDAuxInfo($"{basePath}_disc.txt", out var xgd23DMIHash, out var xgd23PFIHash, out var xgd23SSHash, out var xgd23SS))
|
||||
if (GetXGDAuxInfo($"{basePath}_disc.txt", out var xgd23DMIHash, out var xgd23PFIHash, out _, out var xgd23SS))
|
||||
{
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.DMIHash] = xgd23DMIHash ?? string.Empty;
|
||||
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.PFIHash] = xgd23PFIHash ?? string.Empty;
|
||||
@@ -2307,8 +2307,8 @@ namespace MPF.Processors
|
||||
continue;
|
||||
}
|
||||
|
||||
if (volLabels.ContainsKey(label))
|
||||
volLabels[label].Add(volType);
|
||||
if (volLabels.TryGetValue(label, out List<string>? value))
|
||||
value.Add(volType);
|
||||
else
|
||||
volLabels.Add(label, [volType]);
|
||||
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="GrindCore.SharpCompress" Version="0.41.1" Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))" />
|
||||
<PackageReference Include="SabreTools.Hashing" Version="[1.6.0]" />
|
||||
<PackageReference Include="SabreTools.IO" Version="[1.9.0]" />
|
||||
<PackageReference Include="GrindCore.SharpCompress" Version="0.46.2" Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))" />
|
||||
<PackageReference Include="SabreTools.Hashing" Version="[1.6.1]" />
|
||||
<PackageReference Include="SabreTools.IO" Version="[1.9.1]" />
|
||||
<PackageReference Include="SabreTools.RedumpLib" Version="[1.10.0]" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="[2.2.1]" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="10.0.0" Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="[2.3.0]" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="10.0.5" Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -12,7 +12,7 @@ using SabreTools.RedumpLib.Data;
|
||||
#if NET462_OR_GREATER || NETCOREAPP
|
||||
using SharpCompress.Archives;
|
||||
using SharpCompress.Archives.Zip;
|
||||
using SharpCompress.Common;
|
||||
using SharpCompress.Readers;
|
||||
#endif
|
||||
|
||||
namespace MPF.Processors
|
||||
@@ -47,10 +47,10 @@ namespace MPF.Processors
|
||||
ZipArchive? logArchive = null;
|
||||
try
|
||||
{
|
||||
logArchive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
logArchive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip", new ReaderOptions { ExtractFullPath = false, Overwrite = true});
|
||||
string logName = $"{Path.GetFileNameWithoutExtension(outputFilename)}.log";
|
||||
var logEntry = logArchive.Entries.FirstOrDefault(e => e.Key == logName && !e.IsDirectory);
|
||||
logEntry?.WriteToFile(logPath, new ExtractionOptions { ExtractFullPath = false, Overwrite = true });
|
||||
logEntry?.WriteToFile(logPath);
|
||||
}
|
||||
catch { }
|
||||
|
||||
@@ -788,7 +788,7 @@ namespace MPF.Processors
|
||||
try
|
||||
{
|
||||
// Try to open the archive
|
||||
using ZipArchive archive = ZipArchive.Open($"{basePath}_logs.zip");
|
||||
using ZipArchive archive = (ZipArchive)ZipArchive.OpenArchive($"{basePath}_logs.zip");
|
||||
|
||||
// Get the log entry and check it, if possible
|
||||
ZipArchiveEntry? logEntry = null;
|
||||
@@ -2939,8 +2939,8 @@ namespace MPF.Processors
|
||||
if (label is null || label.Length <= 0)
|
||||
break;
|
||||
|
||||
if (volLabels.ContainsKey(label))
|
||||
volLabels[label].Add("ISO");
|
||||
if (volLabels.TryGetValue(label, out List<string>? value))
|
||||
value.Add("ISO");
|
||||
else
|
||||
volLabels[label] = ["ISO"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user