Fix DIC log parsing for SS version (#649)

This commit is contained in:
Deterous
2024-02-13 01:30:50 +09:00
committed by GitHub
parent f6eb961af4
commit 4a02a3efac
2 changed files with 15 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
- Remove .NET 6 from auto-builds
- Make Redumper the default for new users
- Fix DIC log parsing for SS version
### 3.1.0 (2024-02-06)

View File

@@ -3720,6 +3720,9 @@ namespace MPF.Core.Modules.DiscImageCreator
// This flag is needed because recent versions of DIC include security data twice
bool foundSecuritySectors = false;
// SS version for all Kreon DIC dumps is v1
ssver = "01";
try
{
using var sr = File.OpenText(disc);
@@ -3729,11 +3732,13 @@ namespace MPF.Core.Modules.DiscImageCreator
if (line == null)
break;
// Security Sector version
// XGD version (1 = Xbox, 2 = Xbox360)
/*
if (line.StartsWith("Version of challenge table"))
{
ssver = line.Split(' ')[4]; // "Version of challenge table: <VER>"
xgdver = line.Split(' ')[4]; // "Version of challenge table: <VER>"
}
*/
// Security Sector ranges
else if (line.StartsWith("Number of security sector ranges:") && !foundSecuritySectors)
@@ -3808,6 +3813,9 @@ namespace MPF.Core.Modules.DiscImageCreator
// This flag is needed because recent versions of DIC include security data twice
bool foundSecuritySectors = false;
// SS version for all Kreon DIC dumps is v1
ssver = "01";
try
{
using var sr = File.OpenText(disc);
@@ -3817,11 +3825,13 @@ namespace MPF.Core.Modules.DiscImageCreator
if (line == null)
break;
// Security Sector version
// XGD version (1 = Xbox, 2 = Xbox360)
/*
if (line.StartsWith("Version of challenge table"))
{
ssver = line.Split(' ')[4]; // "Version of challenge table: <VER>"
xgdver = line.Split(' ')[4]; // "Version of challenge table: <VER>"
}
*/
// Security Sector ranges
else if (line.StartsWith("Number of security sector ranges:") && !foundSecuritySectors)