Changeset 173 for oup/current/DataAccess
- Timestamp:
- May 2, 2007, 3:19:40 PM (18 years ago)
- Location:
- oup/current/DataAccess
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/DataAccess/Access_OUP_ADB.pas
r159 r173 91 91 if FQuery.FieldByName('name').AsString = 'lvl' then 92 92 FLevelNumber := StrToInt(FQuery.FieldByName('value').AsString); 93 if FQuery.FieldByName('name').AsString = ' DataOS' then93 if FQuery.FieldByName('name').AsString = 'os' then 94 94 begin 95 95 if FQuery.FieldByName('value').AsString = 'WIN' then -
oup/current/DataAccess/Access_OniArchive.pas
r148 r173 647 647 648 648 function TAccess_OniArchive.AppendRawFile(LocSep: Boolean; Src: TStream): Integer; 649 const 650 EmptyBytes: Array[0..31] of Byte = ( 651 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ); 649 652 begin 650 653 if not LocSep then … … 653 656 Fraw_file := TFileStream.Create(AnsiReplaceStr(FFileName, '.dat', '.raw'), 654 657 fmOpenReadWrite); 658 if (Fraw_file.Size mod 32) > 0 then 659 Fraw_file.Write(EmptyBytes[0], 32 - (Fraw_file.Size mod 32)); 655 660 Result := Fraw_file.Size; 656 661 Fraw_file.Seek(0, soFromEnd); 657 662 Fraw_file.CopyFrom(Src, Src.Size); 663 if (Fraw_file.Size mod 32) > 0 then 664 Fraw_file.Write(EmptyBytes[0], 32 - (Fraw_file.Size mod 32)); 658 665 if UnloadWhenUnused then 659 666 begin … … 669 676 Fsep_file := TFileStream.Create(AnsiReplaceStr(FFileName, '.dat', '.sep'), 670 677 fmOpenReadWrite); 678 if (Fsep_file.Size mod 32) > 0 then 679 Fsep_file.Write(EmptyBytes[0], 32 - (Fsep_file.Size mod 32)); 671 680 Result := Fsep_file.Size; 672 681 Fsep_file.Seek(0, soFromEnd); 673 682 Fsep_file.CopyFrom(Src, Src.Size); 683 if (Fsep_file.Size mod 32) > 0 then 684 Fsep_file.Write(EmptyBytes[0], 32 - (Fsep_file.Size mod 32)); 674 685 if UnloadWhenUnused then 675 686 begin
Note:
See TracChangeset
for help on using the changeset viewer.