"Bill Schwab" <
[hidden email]> wrote in message
news:c1gha5$k1s$
[hidden email]...
> Hello all,
>
> Is there a simple way to use Ian's CB to preview the contents of a Dolphin
> patch? My goal is to preview the changes, in particular #queryPort and
any
> related changes. I obtained the patches with LiveUpdate's open...
command,
> and saved the resulting text as a .st file. The CB's view of the file is
> analogous to a structured storage file - most of the payload is contained
in
> a single chunk called "evaluation".
>
> So far, I have used the CB to open the patch file, copy the evaluation
> chunk, paste that into a workspace and then save a new .st file that
> _appears_ to be a valid patch file. Is there a better way?
Basically you need to skip the secure header chunks and then extract the
patches from the payload chunk. Something like the following should do it:
f := FileStream read: path, 'pl3.st'.
c := ChunkSourceFiler on: f.
6 timesRepeat: [c nextChunk].
(FileStream write: path, 'patch level 3.st') nextPutAll: c nextChunk;
close.
f close.
Regards
Blair