After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770471 - playstation: Support .bin.ecm games
playstation: Support .bin.ecm games
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-27 07:47 UTC by Adrien Plazas
Modified: 2016-09-29 00:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
playstation: Add offsets for .bin.ecm files to header (1.11 KB, patch)
2016-08-28 07:37 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2016-08-27 07:47:30 UTC
Some PSX games are delivered with .bin.ecm binary tracks, currently games don't detect these, though I found that some (all?) have the magic values we know:
- the PLAYSTATION magic seems to be at 0x85D2
- the BOOT magic seems to be at 0xBE64

At the time I am writing this comment, PCSX-ReARMed oesn't support binary tracks in the *.ecm format.
Comment 1 Adrien Plazas 2016-08-27 07:50:19 UTC
Can someone with some .ecm files confirm that the magic values are at the same place?

What about .iso.ecm, do they exist and if yes what are the offsets?
Comment 2 Georges Basile Stavracas Neto 2016-08-28 03:08:01 UTC
A quick look at one of my .bin.ecm files confirm that both PLAYSTATION and BOOT magic values are present at the specified positions.
Comment 3 Adrien Plazas 2016-08-28 07:37:59 UTC
Created attachment 334300 [details] [review]
playstation: Add offsets for .bin.ecm files to header

This allows to detect valid PlayStation games having binary tracks in
the .bin.ecm format.
Comment 4 Adrien Plazas 2016-08-28 07:39:52 UTC
Attachment 334300 [details] pushed as fc7e9a6 - playstation: Add offsets for .bin.ecm files to header
Comment 5 Bastián Díaz 2016-09-28 11:25:08 UTC
Hello, how I can help test some games?

I have several PSX games in *.bin.ecm, but are not detected by gnome-games (using nightly Flatpak) and I know they work because I have long used with other emulators.

Gnome games documentation wiki says they should only work bin + cue files... is there a broader list?. I have some iso, mdf, mdf.ecm and bin that are not detected.

Cheers
Comment 6 Adrien Plazas 2016-09-28 12:20:05 UTC
(In reply to Bastián Díaz from comment #5)
> Hello, how I can help test some games?
> 
> I have several PSX games in *.bin.ecm, but are not detected by gnome-games
> (using nightly Flatpak) and I know they work because I have long used with
> other emulators.
> 
> Gnome games documentation wiki says they should only work bin + cue files...
> is there a broader list?. I have some iso, mdf, mdf.ecm and bin that are not
> detected.
> 
> Cheers

Hi Bastián,

You have plenty of different formats, that's really interesting. :) Can you first open a new ticket so we can discuss it there and attach new patches there as this one is closed?

To detect PlayStation games, Games look for CUE sheets (.cue files), check if they look like PlayStation discs and then look at the binary file containing the first track to check if it's a valid PlayStation game.

It would be better to continue discussing this on the new ticket. :)
Comment 7 Bastián Díaz 2016-09-29 00:25:32 UTC
(In reply to Adrien Plazas from comment #6)
> (In reply to Bastián Díaz from comment #5)
> > Hello, how I can help test some games?
> > 
> > I have several PSX games in *.bin.ecm, but are not detected by gnome-games
> > (using nightly Flatpak) and I know they work because I have long used with
> > other emulators.
> > 
> > Gnome games documentation wiki says they should only work bin + cue files...
> > is there a broader list?. I have some iso, mdf, mdf.ecm and bin that are not
> > detected.
> > 
> > Cheers
> 
> Hi Bastián,
> 
> You have plenty of different formats, that's really interesting. :) Can you
> first open a new ticket so we can discuss it there and attach new patches
> there as this one is closed?
> 

I thought the norm was to reopen a ticket when the same subject (*.bin.ecm), anyway I will make a new one.

> To detect PlayStation games, Games look for CUE sheets (.cue files), check
> if they look like PlayStation discs and then look at the binary file
> containing the first track to check if it's a valid PlayStation game.
> 
> It would be better to continue discussing this on the new ticket. :)