Browse code

Correct size of file ID in INFOEntry structures to 32-bit.

Naram Qashat authored on 2021/03/20 17:57:33
Showing 2 changed files
... ...
@@ -14,8 +14,7 @@ INFOEntrySEQ::INFOEntrySEQ() : fileID(0), bank(0), vol(0), ply(0)
14 14
 
15 15
 void INFOEntrySEQ::Read(PseudoFile &file)
16 16
 {
17
-	this->fileID = file.ReadLE<uint16_t>();
18
-	file.ReadLE<uint16_t>(); // unknown
17
+	this->fileID = file.ReadLE<uint32_t>();
19 18
 	this->bank = file.ReadLE<uint16_t>();
20 19
 	this->vol = file.ReadLE<uint8_t>();
21 20
 	if (!this->vol)
... ...
@@ -32,8 +31,7 @@ INFOEntryBANK::INFOEntryBANK() : fileID(0)
32 31
 
33 32
 void INFOEntryBANK::Read(PseudoFile &file)
34 33
 {
35
-	this->fileID = file.ReadLE<uint16_t>();
36
-	file.ReadLE<uint16_t>(); // unknown
34
+	this->fileID = file.ReadLE<uint32_t>();
37 35
 	file.ReadLE(this->waveArc);
38 36
 }
39 37
 
... ...
@@ -43,8 +41,7 @@ INFOEntryWAVEARC::INFOEntryWAVEARC() : fileID(0)
43 41
 
44 42
 void INFOEntryWAVEARC::Read(PseudoFile &file)
45 43
 {
46
-	this->fileID = file.ReadLE<uint16_t>();
47
-	file.ReadLE<uint16_t>(); // unknown
44
+	this->fileID = file.ReadLE<uint32_t>();
48 45
 }
49 46
 
50 47
 INFOEntryPLAYER::INFOEntryPLAYER() : channelMask(0)
... ...
@@ -21,7 +21,7 @@ struct INFOEntry
21 21
 
22 22
 struct INFOEntrySEQ : INFOEntry
23 23
 {
24
-	uint16_t fileID;
24
+	uint32_t fileID;
25 25
 	uint16_t bank;
26 26
 	uint8_t vol;
27 27
 	uint8_t ply;
... ...
@@ -33,7 +33,7 @@ struct INFOEntrySEQ : INFOEntry
33 33
 
34 34
 struct INFOEntryBANK : INFOEntry
35 35
 {
36
-	uint16_t fileID;
36
+	uint32_t fileID;
37 37
 	uint16_t waveArc[4];
38 38
 
39 39
 	INFOEntryBANK();
... ...
@@ -43,7 +43,7 @@ struct INFOEntryBANK : INFOEntry
43 43
 
44 44
 struct INFOEntryWAVEARC : INFOEntry
45 45
 {
46
-	uint16_t fileID;
46
+	uint32_t fileID;
47 47
 
48 48
 	INFOEntryWAVEARC();
49 49