Fix PS3 version finding

This commit is contained in:
Matt Nadareski
2023-11-03 22:41:22 -04:00
parent 234c0bfbab
commit da46d20ffc
2 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
- Update Redumper to build 247
- Focus main window after child window closes (Deterous)
- Try to get PS3 data from SFB
- Fix PS3 version finding
### 2.7.4 (2023-10-31)

View File

@@ -726,7 +726,9 @@ namespace MPF.Core
using (var br = new BinaryReader(File.OpenRead(sfbPath)))
{
br.BaseStream.Seek(0x230, SeekOrigin.Begin);
return new string(br.ReadChars(0x10));
var discVersion = new string(br.ReadChars(0x10)).TrimEnd('\0');
if (!string.IsNullOrWhiteSpace(discVersion))
return discVersion;
}
}
catch