- Timestamp:
- Apr 2, 2016, 10:38:43 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormMain.pas
r19 r20 228 228 with Core.Project do 229 229 if (ComboBoxDrive.ItemIndex <> -1) and (DriveInfo.Path <> TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex]).Path) then begin 230 with TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex]) do 231 if Kind = dkFile then begin 232 OpenDialog1.FileName := Path; 233 if OpenDialog1.Execute and FileExists(OpenDialog1.FileName) then begin 234 Path := OpenDialog1.FileName; 235 Size := FileSize(Path); 236 Model := OpenDialog1.FileName; 237 SectorSize := 4096; 238 SectorCount := Size div SectorSize; 239 Core.DriveList.LoadToStrings(ComboBoxDrive.Items); 240 end; 241 end; 230 242 DriveInfo.Assign(TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex])); 231 243 Modified := True; … … 485 497 Title := ''; 486 498 if Assigned(Project) then 487 Title := Title + Project.FileName+ ' - ';499 Title := Title + ExtractFileName(Project.FileName) + ' - '; 488 500 Title := Title + Application.Title; 489 501 if Assigned(Project) and Project.Modified then -
trunk/UPhysDrive.pas
r16 r20 109 109 end; 110 110 {$ENDIF} 111 { NewDriveInfo := TDriveInfo.Create; 111 // Drive located using filename 112 NewDriveInfo := TDriveInfo.Create; 112 113 NewDriveInfo.Kind := dkFile; 113 114 NewDriveInfo.Model := 'File'; … … 117 118 NewDriveInfo.Path := ''; 118 119 Add(NewDriveInfo); 119 }120 120 end; 121 121
Note:
See TracChangeset
for help on using the changeset viewer.