Mercurial > hg > xmms-sid
changeset 316:2b22c1f45097
PSID/RSID
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jan 2005 00:32:04 +0000 |
parents | 24cf384ba6db |
children | a4865624208f |
files | src/xs_length.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xs_length.c Thu Dec 30 15:02:02 2004 +0000 +++ b/src/xs_length.c Tue Jan 04 00:32:04 2005 +0000 @@ -396,7 +396,7 @@ /* Compute md5hash of given SID-file */ typedef struct { - gchar magicID[4]; /* "PSID" magic identifier */ + gchar magicID[4]; /* "PSID" / "RSID" magic identifier */ guint16 version, /* Version number */ dataOffset, /* Start of actual c64 data in file */ loadAddress, /* Loading address */ @@ -439,8 +439,8 @@ /* Read PSID header in */ xs_rd_str(inFile, psidH.magicID, sizeof(psidH.magicID)); - if ((psidH.magicID[0] != 'P') || (psidH.magicID[1] != 'S') || - (psidH.magicID[2] != 'I') || (psidH.magicID[3] != 'D')) + if ((psidH.magicID[0] != 'P' && psidH.magicID[0] != 'R') || + (psidH.magicID[1] != 'S') || (psidH.magicID[2] != 'I') || (psidH.magicID[3] != 'D')) { fclose(inFile); return -2;