Changeset 173
- Timestamp:
- May 2, 2007, 3:19:40 PM (18 years ago)
- Location:
- oup/current
- Files:
-
- 5 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 -
oup/current/Global/RawList.pas
r171 r173 117 117 begin 118 118 SetLength(Result, 1); 119 if ConManager.Connection[ConnectionID].DataOS = DOS_MACthen119 if ConManager.Connection[ConnectionID].DataOS in [DOS_MACBETA, DOS_MAC] then 120 120 begin 121 121 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @datasize); -
oup/current/Helper/LevelDB.pas
r167 r173 239 239 case Connection.DataOS of 240 240 DOS_WIN: DatHeader.OSIdent[i] := HeaderOSIdentWin[i]; 241 DOS_MAC : DatHeader.OSIdent[i] := HeaderOSIdentMac[i];241 DOS_MAC, DOS_WINDEMO: DatHeader.OSIdent[i] := HeaderOSIdentMac[i]; 242 242 DOS_MACBETA: DatHeader.OSIdent[i] := HeaderOSIdentMacBeta[i]; 243 243 end; … … 280 280 case Connection.DataOS of 281 281 DOS_WIN: ExtensionsHeader[i].Ident := FileTypes[j].IdentWin; 282 DOS_WINDEMO: ExtensionsHeader[i].Ident := FileTypes[j].IdentMac; 282 DOS_WINDEMO: 283 if FileTypes[j].Extension = 'SNDD' then 284 ExtensionsHeader[i].Ident := FileTypes[j].IdentWin 285 else 286 ExtensionsHeader[i].Ident := FileTypes[j].IdentMac; 283 287 DOS_MAC: ExtensionsHeader[i].Ident := FileTypes[j].IdentMac; 284 288 DOS_MACBETA: ExtensionsHeader[i].Ident := FileTypes[j].IdentMac; … … 492 496 DeleteFile(target); 493 497 end; 494 end;498 end; 495 499 496 500
Note:
See TracChangeset
for help on using the changeset viewer.