Skip to content

Commit

Permalink
Detect S3M files made with Graoumf Tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
sagamusix committed Feb 22, 2023
1 parent e68fcf1 commit 584a939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmt/s3m.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ int fmt_s3m_load_song(song_t *song, slurp_t *fp, unsigned int lflags)
ver_decode_cwtv(trkvers, reserved, song->tracker_id + strlen(song->tracker_id));
break;
case 5:
if (trkvers >= 0x5129 && reserved)
if (trkvers == 0x5447)
strcpy(song->tracker_id, "Graoumf Tracker");
else if (trkvers >= 0x5129 && reserved)
sprintf(song->tracker_id, "OpenMPT %d.%02x.%02x.%02x", (trkvers & 0xf00) >> 8, trkvers & 0xff, (reserved >> 8) & 0xff, reserved & 0xff);
else
tid = "OpenMPT %d.%02x";
Expand Down

0 comments on commit 584a939

Please sign in to comment.