Changeset 222 for oup/current/Global


Ignore:
Timestamp:
Jun 18, 2007, 4:22:53 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current/Global
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/RawList.pas

    r209 r222  
    4444  for i := 0 to links - 1 do
    4545  begin
     46    Result[i].Name := '<TBD>';
    4647    Result[i].SrcOffset := $20 + i * 4;
    4748    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * 4, 4, @link);
     
    6566  for i := 0 to links - 1 do
    6667  begin
     68    Result[i].Name := '<TBD>';
    6769    Result[i].SrcOffset := $20 + i * $74 + $24;
    6870    ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * $74 + $24, 4, @link);
     
    8587  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $08, 4, @datasize);
    8688  SetLength(Result, 1);
     89  Result[0].Name := 'BinaryData';
    8790  Result[0].SrcOffset := $0C;
    8891  Result[0].RawAddr   := link;
     
    102105  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link);
    103106  SetLength(Result, 1);
     107  Result[0].Name := 'SoundBinaryData';
    104108  Result[0].SrcOffset := $0C;
    105109  Result[0].RawAddr   := link;
     
    129133    Result[0].SrcOffset := $44;
    130134  end;
     135  Result[0].Name := 'SoundData';
    131136  Result[0].RawAddr := link;
    132137  Result[0].RawSize := datasize;
     
    170175    begin
    171176      SetLength(Result, 1);
     177      Result[0].Name      := 'Subtitles';
    172178      Result[0].SrcID     := FileID;
    173179      Result[0].SrcOffset := $18;
     
    196202  SetLength(Result, 13);
    197203  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $16C, 2, @frames);
    198   {x-z-pos}
     204  {y-pos}
    199205  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link);
     206  Result[0].Name      := 'y-pos';
    200207  Result[0].SrcOffset := $0C;
    201208  Result[0].RawAddr   := link;
    202   Result[0].RawSize := frames * 4;
    203   {y-pos}
     209  Result[0].RawSize   := frames * 4;
     210  {x-z-pos}
    204211  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link);
     212  Result[1].Name      := 'x-z-pos';
    205213  Result[1].SrcOffset := $10;
    206214  Result[1].RawAddr   := link;
    207   Result[1].RawSize := frames * 8;
     215  Result[1].RawSize   := frames * 8;
    208216  {attacks}
    209217  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb);
    210218  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link);
     219  Result[2].Name      := 'Attacks';
    211220  Result[2].SrcOffset := $14;
    212221  Result[2].RawAddr   := link;
     
    215224  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $183, 1, @tempb);
    216225  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $18, 4, @link);
     226  Result[3].Name      := 'Damage';
    217227  Result[3].SrcOffset := $18;
    218228  Result[3].RawAddr   := link;
     
    221231  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $184, 1, @tempb);
    222232  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $1C, 4, @link);
     233  Result[4].Name      := 'MotionBlur';
    223234  Result[4].SrcOffset := $1C;
    224235  Result[4].RawAddr   := link;
     
    227238  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb);
    228239  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20, 4, @link);
     240  Result[5].Name      := 'Shortcut';
    229241  Result[5].SrcOffset := $20;
    230242  Result[5].RawAddr   := link;
     
    232244  {throw}
    233245  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $24, 4, @link);
     246  Result[6].Name      := 'Throw';
    234247  Result[6].SrcOffset := $24;
    235248  Result[6].RawAddr   := link;
     
    238251  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb);
    239252  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $28, 4, @link);
     253  Result[7].Name      := 'Footstep';
    240254  Result[7].SrcOffset := $28;
    241255  Result[7].RawAddr   := link;
     
    244258  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $187, 1, @tempb);
    245259  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $2C, 4, @link);
     260  Result[8].Name      := 'Particle';
    246261  Result[8].SrcOffset := $2C;
    247262  Result[8].RawAddr   := link;
     
    249264  {position}
    250265  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $30, 4, @link);
     266  Result[9].Name      := 'Position';
    251267  Result[9].SrcOffset := $30;
    252268  Result[9].RawAddr   := link;
    253269  Result[9].RawSize   := frames * 8;
    254   {particle}
     270  {sound}
    255271  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $154, 2, @tempw);
    256272  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $38, 4, @link);
     273  Result[11].Name      := 'Sound';
    257274  Result[11].SrcOffset := $38;
    258275  Result[11].RawAddr   := link;
     
    261278  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $138, 4, @templ);
    262279  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $13C, 4, @link);
     280  Result[12].Name      := 'Extent';
    263281  Result[12].SrcOffset := $13C;
    264282  Result[12].RawAddr   := link;
     
    291309    end;
    292310  end;
     311  Result[10].Name      := 'BodyParts Animation';
    293312  Result[10].SrcOffset := $34;
    294313  Result[10].RawAddr   := link;
     
    351370    Result[0].RawAddr   := link_mac;
    352371  end;
     372  Result[0].Name    := 'ImageData';
    353373  Result[0].RawSize := datasize;
    354374  Result[0].LocSep  := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN);
     
    365385begin
    366386  RawList          := GetRawList(ConnectionID, FileID);
     387  Result.Name      := '';
    367388  Result.SrcID     := -1;
    368389  Result.SrcOffset := -1;
     
    375396      if RawList[i].SrcOffset = DatOffset then
    376397      begin
     398        Result.Name      := RawList[i].Name;
    377399        Result.SrcID     := FileID;
    378400        Result.SrcOffset := RawList[i].SrcOffset;
  • oup/current/Global/TypeDefs.pas

    r124 r222  
    7676
    7777  TRawDataInfo = record
     78      Name:          String;
    7879      SrcID:         Integer;
    7980      SrcOffset:     Integer;
Note: See TracChangeset for help on using the changeset viewer.