Ignore:
Timestamp:
Jul 18, 2007, 12:27:16 AM (17 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

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

    r231 r241  
    3939    function GetRawList(FileID: Integer): TRawDataList; override;
    4040    function GetRawInfo(FileID, DatOffset: Integer): TRawDataInfo; override;
     41    function GetRawsForType(RawType: String): TRawDataList; override;
    4142
    4243    procedure LoadRawOffset(LocSep: Boolean; RawAddr, Size: Integer; var target: TStream); overload;
     
    285286  list := TStringList.Create;
    286287  list.Sorted := True;
     288  if ext = '*' then
     289    ext := '';
    287290  for i := 0 to GetFileCount - 1 do
    288291  begin
     
    489492begin
    490493  Result := RawLists.GetRawList(FConnectionID, FileID);
     494end;
     495
     496
     497function TAccess_OniArchive.GetRawsForType(RawType: String): TRawDataList;
     498var
     499  i, j: Integer;
     500  dats: TStrings;
     501  list: TRawDataList;
     502begin
     503  dats := nil;
     504  dats := GetFilesList(MidStr(RawType, 1, 4), '', True, ST_IDAsc);
     505  for i := 0 to dats.Count - 1 do
     506  begin
     507    list := GetRawList(StrToInt(MidStr(dats.Strings[i], 1, 5)));
     508    for j := 0 to Length(list) - 1 do
     509    begin
     510      if list[j].RawType = RawType then
     511      begin
     512        SetLength(Result, Length(Result)+1);
     513        Result[High(Result)] := list[j];
     514      end;
     515    end;
     516  end;
    491517end;
    492518
Note: See TracChangeset for help on using the changeset viewer.