mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix PS3 version finding
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user