Changeset 243


Ignore:
Timestamp:
Aug 10, 2007, 7:26:03 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • oup/current/DataAccess/Access_OUP_ADB.pas

    r241 r243  
    549549  SetLength(Result, 0);
    550550  FQuery.SQL.Text := 'SELECT [src_id],[src_link_offset],[name],[size],[sep] FROM rawmap ' +
    551     'WHERE [type]="' + RawType + '" ORDER BY src_id ASC, src_link_offset ASC;';
     551    'WHERE [type]="' + RawType + '" and [size]>0 ORDER BY src_id ASC, src_link_offset ASC;';
    552552  FQuery.Open;
    553553  if FQuery.RecordCount > 0 then
  • oup/current/DataAccess/Access_OniArchive.pas

    r241 r243  
    508508    for j := 0 to Length(list) - 1 do
    509509    begin
    510       if list[j].RawType = RawType then
     510      if (list[j].RawType = RawType) and (list[j].RawSize > 0) then
    511511      begin
    512512        SetLength(Result, Length(Result)+1);
  • oup/current/FileClasses/_DataTypes.pas

    r241 r243  
    835835  FNames := TStringList.Create;
    836836  for i := 0 to High(ExtraArgs) do
     837  begin
    837838    case ExtraArgs[i].VType of
    838       vtChar: FNames.Add(ExtraArgs[0].VChar);
    839       vtAnsiString: FNames.Add(String(ExtraArgs[0].VAnsiString));
     839      vtChar: FNames.Add(ExtraArgs[i].VChar);
     840      vtAnsiString: FNames.Add(String(ExtraArgs[i].VAnsiString));
    840841    end;
     842    if Length(FDescription) > 0 then
     843      FDescription := FDescription + #13#10;
     844    FDescription := FDescription + '$' + IntToHex(1 shl i,2) + ': ' + FNames.Strings[FNames.Count - 1];
     845  end;
    841846  FDataLength := 1;
    842847  FType := 'BitSet';
  • oup/current/Tools/MetaEditor.dfm

    r241 r243  
    8585      object tab_hex: TTabSheet
    8686        Caption = 'Binary Edit'
     87        ExplicitLeft = 0
     88        ExplicitTop = 0
     89        ExplicitWidth = 0
     90        ExplicitHeight = 0
    8791        object splitter_hex_1: TSplitter
    8892          Left = 0
  • oup/current/Tools/MetaEditor.pas

    r242 r243  
    264264  i: Integer;
    265265  links: TStrings;
     266  ifile: TFile;
    266267begin
    267268  inherited;
     
    279280        end;
    280281      end;
    281       if (data.Field is _MetaTypes.TDatLink) and (Column = 2) then
     282      if data.Field is TFile then
    282283      begin
    283         links := nil;
    284         links := ConManager.Connection[FConnectionID].GetFilesList(_MetaTypes.TDatLink(data.Field).PosExts, '', False, ST_NameAsc);
    285         HintText := IntToStr(links.Count);
    286         for i := 0 to Min(links.Count - 1, 99) do
    287         begin
    288           if (i mod 5) = 0 then
    289             HintText := HintText + #13+#10;
    290           HintText := HintText + links.Strings[i] + '       ';
     284        ifile := TFile(data.Field);
     285        case Column of
     286          0: HintText :=
     287            'FileID:    ' + IntToStr(ifile.FileInfo.ID) + #13#10 +
     288            'Name:      ' + ifile.FileInfo.Name + #13#10 +
     289            'Extension: ' + ifile.FileInfo.Extension + #13#10 +
     290            '.dat-size: ' + IntToStr(ifile.FileInfo.Size) + #13#10;
    291291        end;
    292292      end;
Note: See TracChangeset for help on using the changeset viewer.