1
0
Fork 0

Reduce the track number's type to comply with MSCDEX

This commit is contained in:
krcroft 2020-02-06 07:54:12 -08:00
parent 95dc9db727
commit 8382eb0e7e
No known key found for this signature in database
GPG key ID: 4AD3678F4A2C291C
2 changed files with 5 additions and 3 deletions

View file

@ -188,8 +188,8 @@ public:
uint32_t start = 0;
uint32_t length = 0;
uint32_t skip = 0;
uint16_t number = 0;
uint16_t sectorSize = 0;
uint8_t number = 0;
uint8_t attr = 0;
bool mode2 = false;
};

View file

@ -884,6 +884,7 @@ bool CDROM_Interface_Image::LoadCueSheet(char *cuefile)
int currPregap = 0;
int totalPregap = 0;
int prestart = -1;
int track_number;
bool success;
bool canAddTrack = false;
char tmp[MAX_FILENAME_LENGTH]; // dirname can change its argument
@ -916,8 +917,9 @@ bool CDROM_Interface_Image::LoadCueSheet(char *cuefile)
currPregap = 0;
prestart = -1;
line >> track.number;
string type;
line >> track_number; // (cin) read into a true int first
track.number = track_number; // then assign to the uint8_t
string type;
GetCueKeyword(type, line);
if (type == "AUDIO") {