Debug(concat(OSTypeToString(typ),'=',NumToStr(id1),' is missing'));
end;
end else begin
GetResInfo(h2,id2,the_type,the_name);
size2 := GetResourceSizeOnDisk(h2);
ReleaseResource(h2);
if (size1 <> size2) then begin
Debug(concat(OSTypeToString(typ),'=',NumToStr(id1),' different sizes'));
end;
end;
end;
end;
end;
var
name:Str63;
tfs, dest:FSSpec;
pb: CInfoPBRec;
rn1, rn2, rnd:integer;
h:Handle;
dlen:longInt;
err:OSErr;
begin
ProcessPair := -1;
name := '';
Check(not IsExtension(fs1.name,'FAT') & not IsExtension(fs2.name,'FAT'), 'No no, drop the 68k and PPC applications on to this, not the FAT application!');
if IsExtension(fs1.name,'68k') then begin
name := copy(fs1.name,1,length(fs1.name)-3);
end else if IsExtension(fs2.name,'PPC') then begin
name := copy(fs2.name,1,length(fs2.name)-3);
end else if IsExtension(fs2.name,'68k') then begin
tfs := fs1; fs1 := fs2; fs2 := tfs;
name := copy(fs1.name,1,length(fs1.name)-3);
end else if IsExtension(fs2.name,'PPC') then begin
tfs := fs1; fs1 := fs2; fs2 := tfs;
name := copy(fs2.name,1,length(fs2.name)-3);
end;
Check(name <> '', 'Couldnt find 68k or PPC in names');
if (IUEqualString(name, fs1.name) = 0) or (IUEqualString(name, fs2.name) = 0) then begin
name := concat(name,'FAT');
end;
if (IUEqualString(name, fs1.name) = 0) or (IUEqualString(name, fs2.name) = 0) then begin
LimitStringLength(name,30,'…');
name := concat(name,'#');
end;
err := FSpGetCatInfo (fs1, 0, pb);
Check(err = noErr, 'Cant get info on 68k file');
Check(pb.ioFlLgLen = 0, '68k file has data fork');
err := FSpGetCatInfo (fs2, 0, pb);
Check(err = noErr, 'Cant get info on PPC file');
Check(pb.ioFlLgLen <> 0, 'PPC file has no data fork');