Changeset 13 for trunk/UDriveScan.pas


Ignore:
Timestamp:
Apr 2, 2016, 1:06:34 PM (8 years ago)
Author:
chronos
Message:
  • Modified: All drive dimensions are now stored in project file.
  • Added: Confirmation dialog for saving project on application exit.
  • Modified: ComboBox for selection of current drive now behaves correctly to update project parameters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UDriveScan.pas

    r12 r13  
    3939    Lock: TCriticalSection;
    4040    BlockMap: TBlockMap;
    41     SectorSize: Integer;
    4241    TimeStart: TDateTime;
    4342    TimeEnd: TDateTime;
     
    4645    Mode: TRunMode;
    4746    WritePattern: Byte;
     47    SectorSize: Integer;
    4848    SectorStart: Integer;
    4949    SectorEnd: Integer;
     
    257257    WriteDateTime(Node, 'TimeStart', TimeStart);
    258258    WriteDateTime(Node, 'TimeEnd', TimeEnd);
     259    WriteInteger(Node, 'SectorSize', SectorSize);
     260    WriteInteger(Node, 'SectorCount', SectorCount);
    259261    WriteInteger(Node, 'SectorStart', SectorStart);
    260262    WriteInteger(Node, 'SectorEnd', SectorEnd);
     
    277279    TimeStart := ReadDateTime(Node, 'TimeStart', 0);
    278280    TimeEnd := ReadDateTime(Node, 'TimeEnd', 0);
    279     FSectorCurrent := ReadInteger(Node, 'SectorCurrent', 0);
     281    SectorSize := ReadInteger(Node, 'SectorSize', 512);
     282    SectorCount := ReadInteger(Node, 'SectorCount', 0);
    280283    SectorStart := ReadInteger(Node, 'SectorStart', 0);
    281284    SectorEnd := ReadInteger(Node, 'SectorEnd', SectorCount - 1);
     285    FSectorCurrent := ReadInteger(Node, 'SectorCurrent', 0);
    282286
    283287    NewNode := FindNode('SectorMap');
Note: See TracChangeset for help on using the changeset viewer.