Changeset 241 for oup/current/DataAccess/Access_OniArchive.pas
- Timestamp:
- Jul 18, 2007, 12:27:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/DataAccess/Access_OniArchive.pas
r231 r241 39 39 function GetRawList(FileID: Integer): TRawDataList; override; 40 40 function GetRawInfo(FileID, DatOffset: Integer): TRawDataInfo; override; 41 function GetRawsForType(RawType: String): TRawDataList; override; 41 42 42 43 procedure LoadRawOffset(LocSep: Boolean; RawAddr, Size: Integer; var target: TStream); overload; … … 285 286 list := TStringList.Create; 286 287 list.Sorted := True; 288 if ext = '*' then 289 ext := ''; 287 290 for i := 0 to GetFileCount - 1 do 288 291 begin … … 489 492 begin 490 493 Result := RawLists.GetRawList(FConnectionID, FileID); 494 end; 495 496 497 function TAccess_OniArchive.GetRawsForType(RawType: String): TRawDataList; 498 var 499 i, j: Integer; 500 dats: TStrings; 501 list: TRawDataList; 502 begin 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; 491 517 end; 492 518
Note:
See TracChangeset
for help on using the changeset viewer.