[gnome-games] playstation: Add offsets for .bin.ecm files to header



commit fc7e9a64da50d9d6d60f6f37c69909156aa40d9f
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Aug 28 09:36:05 2016 +0200

    playstation: Add offsets for .bin.ecm files to header
    
    This allows to detect valid PlayStation games having binary tracks in
    the .bin.ecm format.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770471

 plugins/playstation/src/playstation-header.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/playstation/src/playstation-header.vala b/plugins/playstation/src/playstation-header.vala
index 289c863..e2d3edf 100644
--- a/plugins/playstation/src/playstation-header.vala
+++ b/plugins/playstation/src/playstation-header.vala
@@ -2,6 +2,7 @@
 
 private class Games.PlayStationHeader : Object {
        private const size_t[] HEADER_OFFSETS = {
+               0x85D2, // .bin.ecm
                0x9320, // .bin
                0x9360, // .iso 
        };
@@ -9,6 +10,7 @@ private class Games.PlayStationHeader : Object {
        private const string HEADER_MAGIC_VALUE = "PLAYSTATION";
 
        private const size_t[] BOOT_OFFSETS = {
+               0xBE64, // .bin.ecm
                0xD368, // .bin
                0xD3A8, // .iso
        };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]