| 5 |
|
uses |
| 6 |
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, |
| 7 |
|
Dialogs, _TemplateFileList, Menus, StdCtrls, ExtCtrls, Buttons, ComCtrls, |
| 8 |
< |
TypeDefs, Grids, Wrapgrid, MPHexEditor; |
| 8 |
> |
TypeDefs, Grids, Wrapgrid, MPHexEditor, VirtualTrees; |
| 9 |
|
|
| 10 |
|
type |
| 11 |
|
TForm_RawEdit = class(TForm_TemplateFileList) |
| 145 |
|
|
| 146 |
|
rawinfo := ConManager.Connection[ConnectionID].GetRawInfo(fileid, datoffset); |
| 147 |
|
|
| 148 |
< |
mem := nil; |
| 149 |
< |
ConManager.Connection[ConnectionID].LoadRawFile(rawinfo.SrcID, rawinfo.SrcOffset, TStream(mem)); |
| 150 |
< |
hex.LoadFromStream(mem); |
| 151 |
< |
ClearValues; |
| 152 |
< |
hexSelectionChanged(Self); |
| 148 |
> |
if rawinfo.RawSize > 0 then |
| 149 |
> |
begin |
| 150 |
> |
mem := nil; |
| 151 |
> |
ConManager.Connection[ConnectionID].LoadRawFile(rawinfo.SrcID, rawinfo.SrcOffset, TStream(mem)); |
| 152 |
> |
hex.LoadFromStream(mem); |
| 153 |
> |
ClearValues; |
| 154 |
> |
hexSelectionChanged(Self); |
| 155 |
> |
end |
| 156 |
> |
else |
| 157 |
> |
begin |
| 158 |
> |
hex.DataSize := 0; |
| 159 |
> |
ClearValues; |
| 160 |
> |
end; |
| 161 |
|
end; |
| 162 |
|
|
| 163 |
|
|