Add support for multi cluster directory

This commit is contained in:
Baptiste Wicht 2013-12-23 23:07:59 +01:00
parent 05f73b312c
commit 5ca56b60e2

View File

@ -355,12 +355,23 @@ std::vector<disks::file> files(fat32::dd disk, const std::vector<std::string>& p
}
if(!end_reached){
auto next = next_cluster(disk, cluster_number);
//If there are no more cluster, return false
if(!next){
return std::move(files);
}
//The block is corrupted
if(next == 0x0FFFFFF7){
return std::move(files);
}
//Read the next cluster in the chain
cluster_number = next;
}
}
//TODO If end_reached not true, we should read the next cluster
return std::move(files);
}