Skip to content

Commit

Permalink
cdrom: fix 'no track 1' edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
twolife authored and icculus committed Dec 31, 2023
1 parent 744cfca commit c810b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL12_compat.c
Expand Up @@ -8858,7 +8858,7 @@ SDL_CDOpen(int drive)
SDL20_snprintf(fullpath, alloclen, "%s%strack%c%c.mp3", CDRomPath, DIRSEP, c0, c1);
rw = SDL20_RWFromFile(fullpath, "rb");
/* if there isn't a track 1 specified, pretend it's a data track, which matches most games' needs. */
if (!rw && (c == 0)) {
if (!rw && (c == 1)) {
fake_data_track = SDL_TRUE;
}
}
Expand Down

0 comments on commit c810b6a

Please sign in to comment.