@@ -20,7 +20,7 @@ public:
2020 int sectorChunk = 1 ;
2121 int sectorCount;
2222 int sectorStride;
23- int nullTermination ;
23+ int nullTrailing ;
2424 uint8_t filenum;
2525 uint8_t channel;
2626 alignas (int ) uint8_t nullSubheader[4 ];
@@ -252,16 +252,16 @@ private:
252252
253253 if (entry.filenum != buffer[FILENUM_OFFSET ])
254254 goto END ;
255- else if (entry.nullTermination > 0 )
255+ else if (entry.nullTrailing > 0 )
256256 {
257257 if (entry.nullSubheader [1 ] == buffer[CHANNEL_OFFSET ] && (entry.nullSubheader [2 ] | 0x80 ) == (buffer[SUBMODE_OFFSET ] | 0x80 ) && isNull ())
258- entry.nullTermination ++;
258+ entry.nullTrailing ++;
259259 else
260260 goto END ;
261261 }
262262 else if (isNull ())
263263 {
264- entry.nullTermination ++;
264+ entry.nullTrailing ++;
265265 memcpy (&entry.nullSubheader , &buffer[FILENUM_OFFSET ], sizeof (entry.nullSubheader ));
266266 }
267267 else if (eof || entry.channel != buffer[CHANNEL_OFFSET ])
@@ -276,7 +276,7 @@ private:
276276 } while (true );
277277
278278 END :
279- const int nullSectors = entry.nullTermination / entry.sectorChunk * entry.sectorStride + entry.nullTermination ;
279+ const int nullSectors = entry.nullTrailing / entry.sectorChunk * entry.sectorStride + entry.nullTrailing ;
280280 entry.endSec = currentSector - entry.sectorStride - nullSectors - 1 ;
281281
282282 if (entry.sectorStride > 0 )
@@ -303,11 +303,11 @@ private:
303303 return ;
304304 }
305305
306- fprintf (manifest, " chunk,type,file,null_termination ,xa_file_number,xa_channel_number" /* ",xa_null_subheader"*/ " ,sector_beg-end,stride\n " );
306+ fprintf (manifest, " chunk,type,file,null_trailing ,xa_file_number,xa_channel_number" /* ",xa_null_subheader"*/ " ,sector_beg-end,stride\n " );
307307 for (const FileInfo &entry : entries)
308308 {
309309 fprintf (manifest, " %d,%s,%s,%d,%hhu,%hhu" /* ",0x%02X%02X%02X%02X"*/ " ,%d-%d,%d\n " , entry.sectorChunk , type,
310- entry.fileName .c_str (), entry.nullTermination , entry.filenum , entry.channel ,
310+ entry.fileName .c_str (), entry.nullTrailing , entry.filenum , entry.channel ,
311311 /* entry.nullSubheader[0], entry.nullSubheader[1], entry.nullSubheader[2], entry.nullSubheader[3],*/
312312 entry.begSec , entry.endSec , entry.sectorChunk + entry.sectorStride );
313313 }
0 commit comments