Distinguish between filesystem track ordering and image track ordering

(although currently only the filesystem ordering is used).
This commit is contained in:
David Given
2024-11-29 22:07:58 +01:00
parent e878c6eef6
commit 2bda78fb40
27 changed files with 61 additions and 49 deletions

View File

@@ -128,7 +128,7 @@ class CbmfsFilesystem : public Filesystem
usedBlocks = 0;
unsigned block = 0;
for (int track = 0; track < globalConfig()->layout().tracks();
track++)
track++)
{
uint8_t blocks = br.read_8();
uint32_t bitmap = br.read_le24();

View File

@@ -160,8 +160,8 @@ Filesystem::Filesystem(std::shared_ptr<SectorInterface> sectors):
"information");
unsigned block = 0;
for (const auto& p :
Layout::getTrackOrdering(layout.tracks(), layout.sides()))
for (const auto& p : Layout::getTrackOrdering(
layout.filesystem_track_order(), layout.tracks(), layout.sides()))
{
int track = p.first;
int side = p.second;