From 76aa4384e48419c630492126d9c6d81e0e1ee01b Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 16 May 2021 21:15:11 +0100 Subject: [PATCH] If BPB could not be retrieved in Atari ST assume we're using 512 bytes per sector. --- setter/src/atarist/volume.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setter/src/atarist/volume.c b/setter/src/atarist/volume.c index 3a10015..7991b4c 100644 --- a/setter/src/atarist/volume.c +++ b/setter/src/atarist/volume.c @@ -47,7 +47,8 @@ void GetVolumeInfo(const char* path, size_t* clusterSize) if(bpb == NULL) { - log_write("Error %d requesting volume information.\n", rc); + log_write("Error requesting volume information, assuming 512 bps.\n"); + *clusterSize = 512; return; }