Re: [AD] a 'bug' fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Peter Pavlovic <pavlovic@xxxxxxxxxx> wrote:

> Recently I realised that on my computer, the file selector show the drive
> b: which doesn't really exist. After some searching in various sources
> such as the Norton Guides I found that it is a logical drive for the drive
> a: (some materials say it is a 'phantom drive' :-) So I modified the file
> selector (fsel.c) in the DOS section not to show this logical drive,
> because it always reports an error after clicking on it.

be careful!!! some people does in fact have two 1.44mb floppy disks on
their
computer and your 'bug-fix' will disable support for drive B: in
allegro.
on computers with only one floppy drive, drive A: and B: refears to the
same
floppy drive, if you try a diskcopy a: b: it will prompt for a disk
change...

what you need is a method to find out if there are one or two floppy
disks present.
i suppose you could use INT 0x13, AH=0x02 to determine if a second drive
is present
by trying to read from the physical drive. or the easy solution to not
bother at all,
which is IMHO the best solution, leave OS stuff to the OS. :)

-- 
Sincerely Henrik Stokseth.
------------------------------------------------------
E-Mail: hstokset@xxxxxxxxxx
Homepage: http://thunder.prohosting.com/~hstokset/
------------------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/