Re: [cbm4linux-users] Cant open source from d71
Brought to you by:
cbm4linux
From: Michael K. <mic...@pu...> - 2004-11-02 09:12:22
|
On Mon, Nov 01, 2004 at 09:42:19PM +0100, Mats Johansson wrote: > > When i use d64copy to create a d71 image it works very well the image > > is created and works well. > > Can you tell how big the image is (in bytes)? > > 349696 bytes Good. > > [Fatal] neither a .d64 not .d71 file: hej2.d71 > > This message tells us that the d64copy thinks that it is neither a D64 > nor a D71 image (what else should this message tell?), and this is > determined by the size of the image in libd64copy/fs.c - open_disk(). > > Ok. There's a silly bug in the above function. This should fix it: diff -u -r1.14 -r1.15 --- fs.c 2 Nov 2004 08:13:45 -0000 1.14 +++ fs.c 2 Nov 2004 08:15:34 -0000 1.15 @@ -78,11 +78,13 @@ { if(statrec.st_size == D71_BLOCKS * BLOCKSIZE) { + is_image = 1; block_count = D71_BLOCKS; tr = D71_TRACKS; } else if(statrec.st_size == D71_BLOCKS * (BLOCKSIZE + 1)) { + is_image = 1; error_info = 1; block_count = D71_BLOCKS; tr = D71_TRACKS; -- Michael I wish there was a knob on the TV to turn up the intelligence. There's a knob called "brightness", but it doesn't seem to work. -- Gallagher |