mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-19 09:35:15 -04:00
Add support for multi cluster directory
This commit is contained in:
parent
05f73b312c
commit
5ca56b60e2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user