Changeset 18 for trunk/UDriveScan.pas


Ignore:
Timestamp:
Apr 2, 2016, 9:15:35 PM (8 years ago)
Author:
chronos
Message:
  • Added: Mark written sectors with write flag and blue color.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UDriveScan.pas

    r17 r18  
    212212          BlockMap.Sectors[FSectorCurrent] := bsDamaged;
    213213          Inc(DamagedBlockCount);
    214         end else BlockMap.Sectors[FSectorCurrent] := bsOk;
     214        end else begin
     215          if Mode = rmRead then BlockMap.Sectors[FSectorCurrent] := bsRead
     216            else if Mode = rmWrite then BlockMap.Sectors[FSectorCurrent] := bsWrite;
     217        end;
    215218        Inc(FSectorCurrent);
    216219        if Terminated then Break;
Note: See TracChangeset for help on using the changeset viewer.