Skip to content

Commit cf656bf

Browse files
committed
Update Redumper to build 700
1 parent 62a77c0 commit cf656bf

4 files changed

Lines changed: 62 additions & 16 deletions

File tree

CHANGELIST.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
- Support more new redumper changes
4949
- Update Redumper to build 699
5050
- Handle quoted flags, more quoted value types
51+
- Update Redumper to build 700
5152

5253
### 3.6.0 (2025-11-28)
5354

MPF.Processors/Redumper.cs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, MediaType? medi
209209
long scsiErrors = GetSCSIErrorCount($"{basePath}.log");
210210
info.CommonDiscInfo.ErrorsCount = scsiErrors == -1 ? "Error retrieving error count" : scsiErrors.ToString();
211211

212+
// Get BCA information, if available
213+
info.Extras.BCA = GetBCA($"{basePath}.bca");
214+
212215
// Bluray-specific options
213216
if (mediaType == MediaType.BluRay || mediaType == MediaType.NintendoWiiUOpticalDisc)
214217
{
@@ -217,6 +220,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, MediaType? medi
217220
{
218221
case RedumpSystem.MicrosoftXboxOne:
219222
case RedumpSystem.MicrosoftXboxSeriesXS:
223+
case RedumpSystem.NintendoWiiU:
220224
case RedumpSystem.SonyPlayStation3:
221225
case RedumpSystem.SonyPlayStation4:
222226
case RedumpSystem.SonyPlayStation5:
@@ -868,6 +872,47 @@ private static bool IsManufacturerEmpty(string inputFilename)
868872

869873
#region Information Extraction Methods
870874

875+
/// <summary>
876+
/// Get the hex contents of the BCA file
877+
/// </summary>
878+
/// <param name="bcaPath">Path to the BCA file associated with the dump</param>
879+
/// <returns>BCA data as a hex string if possible, null on error</returns>
880+
/// <remarks>https://stackoverflow.com/questions/9932096/add-separator-to-string-at-every-n-characters</remarks>
881+
internal static string? GetBCA(string bcaPath)
882+
{
883+
// If the file doesn't exist, we can't get the info
884+
if (string.IsNullOrEmpty(bcaPath))
885+
return null;
886+
if (!File.Exists(bcaPath))
887+
return null;
888+
889+
try
890+
{
891+
var hex = ProcessingTool.GetFullFile(bcaPath, true);
892+
if (hex is null)
893+
return null;
894+
895+
// Separate into blocks of 4 hex digits and newlines
896+
// Skips the 4-byte header
897+
var bca = new StringBuilder();
898+
for (int i = 4; i < hex.Length; i++)
899+
{
900+
bca.Append(hex[i]);
901+
if ((i + 1) % 32 == 0)
902+
bca.AppendLine();
903+
else if ((i + 1) % 4 == 0)
904+
bca.Append(' ');
905+
}
906+
907+
return bca.ToString();
908+
}
909+
catch
910+
{
911+
// Absorb the exception right now
912+
return null;
913+
}
914+
}
915+
871916
/// <summary>
872917
/// Get the cuesheet from the input file, if possible
873918
/// </summary>

publish-nix.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ function download_programs() {
100100
DL_MAP["Creator_win-x86"]="https://github.com/user-attachments/files/24401506/DiscImageCreator_20260101.zip"
101101

102102
# Redumper
103-
DL_MAP["Redumper_linux-arm64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-arm64.zip"
104-
DL_MAP["Redumper_linux-x64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-x64.zip"
105-
#DL_MAP["Redumper_linux_x86"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-x86.zip"
106-
DL_MAP["Redumper_osx-arm64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-macos-arm64.zip"
107-
DL_MAP["Redumper_osx-x64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-macos-x64.zip"
108-
DL_MAP["Redumper_win-arm64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-arm64.zip"
109-
DL_MAP["Redumper_win-x64"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-x64.zip"
110-
DL_MAP["Redumper_win-x86"]="https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-x86.zip"
103+
DL_MAP["Redumper_linux-arm64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-arm64.zip"
104+
DL_MAP["Redumper_linux-x64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-x64.zip"
105+
#DL_MAP["Redumper_linux_x86"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-x86.zip"
106+
DL_MAP["Redumper_osx-arm64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-macos-arm64.zip"
107+
DL_MAP["Redumper_osx-x64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-macos-x64.zip"
108+
DL_MAP["Redumper_win-arm64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-arm64.zip"
109+
DL_MAP["Redumper_win-x64"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-x64.zip"
110+
DL_MAP["Redumper_win-x86"]="https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-x86.zip"
111111

112112
# Download and extract files
113113
echo "===== Downloading Required Programs ====="

publish-win.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ function Download-Programs {
8989
"Creator_win-x64" = "https://github.com/user-attachments/files/24401506/DiscImageCreator_20260101.zip"
9090

9191
# Redumper
92-
"Redumper_linux-arm64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-arm64.zip"
93-
"Redumper_linux-x64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-x64.zip"
94-
#"Redumper_linux-x86" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-linux-x86.zip"
95-
"Redumper_osx-arm64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-macos-arm64.zip"
96-
"Redumper_osx-x64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-macos-x64.zip"
97-
"Redumper_win-arm64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-arm64.zip"
98-
"Redumper_win-x86" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-x86.zip"
99-
"Redumper_win-x64" = "https://github.com/superg/redumper/releases/download/b699/redumper-b699-windows-x64.zip"
92+
"Redumper_linux-arm64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-arm64.zip"
93+
"Redumper_linux-x64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-x64.zip"
94+
#"Redumper_linux-x86" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-linux-x86.zip"
95+
"Redumper_osx-arm64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-macos-arm64.zip"
96+
"Redumper_osx-x64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-macos-x64.zip"
97+
"Redumper_win-arm64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-arm64.zip"
98+
"Redumper_win-x86" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-x86.zip"
99+
"Redumper_win-x64" = "https://github.com/superg/redumper/releases/download/b700/redumper-b700-windows-x64.zip"
100100
}
101101

102102
# Download and extract files

0 commit comments

Comments
 (0)