Changeset 173 for oup/current/DataAccess


Ignore:
Timestamp:
May 2, 2007, 3:19:40 PM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current/DataAccess
Files:
2 edited

Legend:

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

    r159 r173  
    9191    if FQuery.FieldByName('name').AsString = 'lvl' then
    9292      FLevelNumber := StrToInt(FQuery.FieldByName('value').AsString);
    93     if FQuery.FieldByName('name').AsString = 'DataOS' then
     93    if FQuery.FieldByName('name').AsString = 'os' then
    9494    begin
    9595      if FQuery.FieldByName('value').AsString = 'WIN' then
  • oup/current/DataAccess/Access_OniArchive.pas

    r148 r173  
    647647
    648648function TAccess_OniArchive.AppendRawFile(LocSep: Boolean; Src: TStream): Integer;
     649const
     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 );
    649652begin
    650653  if not LocSep then
     
    653656      Fraw_file := TFileStream.Create(AnsiReplaceStr(FFileName, '.dat', '.raw'),
    654657        fmOpenReadWrite);
     658    if (Fraw_file.Size mod 32) > 0 then
     659      Fraw_file.Write(EmptyBytes[0], 32 - (Fraw_file.Size mod 32));
    655660    Result := Fraw_file.Size;
    656661    Fraw_file.Seek(0, soFromEnd);
    657662    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));
    658665    if UnloadWhenUnused then
    659666    begin
     
    669676      Fsep_file := TFileStream.Create(AnsiReplaceStr(FFileName, '.dat', '.sep'),
    670677        fmOpenReadWrite);
     678    if (Fsep_file.Size mod 32) > 0 then
     679      Fsep_file.Write(EmptyBytes[0], 32 - (Fsep_file.Size mod 32));
    671680    Result := Fsep_file.Size;
    672681    Fsep_file.Seek(0, soFromEnd);
    673682    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));
    674685    if UnloadWhenUnused then
    675686    begin
Note: See TracChangeset for help on using the changeset viewer.