[FEATURE REQUEST] Removable Media Drive Emulation Overhaul
-
- Posts: 20
- Joined: Fri 04 Jul, 2014 7:01 pm
[FEATURE REQUEST] Removable Media Drive Emulation Overhaul
For floppy drives, PCem should allow mounting images only when the drive is empty.
But as for optical drives, PCem should emulate their tray states (and allow mounting/unmounting images only with the tray ejected).
Just like a real PC!
But as for optical drives, PCem should emulate their tray states (and allow mounting/unmounting images only with the tray ejected).
Just like a real PC!
I'm your biggest fan, Windows 9x series of operating systems!
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
So... what do you mean here? If there is a disc or a floppy inserted and you want to insert another one an error message should pop?
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
Why on earth would you want this?Windows9xFan wrote: ↑Wed 11 Nov, 2020 3:55 am For floppy drives, PCem should allow mounting images only when the drive is empty.
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
At least it would be the easiest request to doSarahWalker wrote: ↑Wed 11 Nov, 2020 3:30 pmWhy on earth would you want this?Windows9xFan wrote: ↑Wed 11 Nov, 2020 3:55 am For floppy drives, PCem should allow mounting images only when the drive is empty.
-
- Posts: 20
- Joined: Fri 04 Jul, 2014 7:01 pm
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
Because that's the way a real floppy drive works.SarahWalker wrote: ↑Wed 11 Nov, 2020 3:30 pmWhy on earth would you want this?Windows9xFan wrote: ↑Wed 11 Nov, 2020 3:55 am For floppy drives, PCem should allow mounting images only when the drive is empty.
I'm your biggest fan, Windows 9x series of operating systems!
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
and a real computer has knobs, buttons, wheels, and wires all over the place. Should PCem transform into looking like a VST plugin interface too?
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
Sounds great, thanks!
But seriously, I have wondered about some things related to this topic before with regards to various emulators.
For instance, I'm pretty sure a floppy drive controller has a disk changed indication that the operating system can read. If I don't explicitly tell the emulator to eject the disk before supplying a new image, will it update that indicator properly? I took a look at the PCem source and I couldn't figure it out in a few seconds so I gave up
I also wonder how this kind of thing works with CD-ROM drives. Do they have disk change indicators or just a "tray open" indicator? How does the operating system notice when the disk has been changed so it can do the auto run steps, etc.? If the OS does some polling and I change the .iso image without the tray being in an "ejected" state for at least one polling cycle with the OS not notice that I changed disks?
I'm not expecting anyone to answer all of my questions, those are just things I've pondered previously since I'm pretty sure I've had issues with disk changes not being detected properly.
Apologies for my cluelessness!
Apologies in advance for not responding, I don't check back here very often.
- SarahWalker
- Site Admin
- Posts: 2054
- Joined: Thu 24 Apr, 2014 4:18 pm
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
There is a disc changed indicator on the AT and later FDCs, and yes, PCem does update that when you load a new disc image in without ejecting the old one first. If this wasn't implemented, then in DOS you could DIR a disc, load a new disc, DIR again and still get the old disc contents.
CD drives have a similar status bit, and there's a chunk of code to ensure that gets updated correctly.
I'm very tempted to give Windows9xFan his wish, then get him to install Windows NT 3.51 (22 discs) and see quite how quickly he gets sick of it!
CD drives have a similar status bit, and there's a chunk of code to ensure that gets updated correctly.
I'm very tempted to give Windows9xFan his wish, then get him to install Windows NT 3.51 (22 discs) and see quite how quickly he gets sick of it!
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
SarahWalker wrote: ↑Tue 17 Nov, 2020 7:42 am I'm very tempted to give Windows9xFan his wish, then get him to install Windows NT 3.51 (22 discs) and see quite how quickly he gets sick of it!
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
Great, thanks for the info!SarahWalker wrote: ↑Tue 17 Nov, 2020 7:42 am There is a disc changed indicator on the AT and later FDCs, and yes, PCem does update that when you load a new disc image in without ejecting the old one first. If this wasn't implemented, then in DOS you could DIR a disc, load a new disc, DIR again and still get the old disc contents.
CD drives have a similar status bit, and there's a chunk of code to ensure that gets updated correctly.
I'm very tempted to give Windows9xFan his wish, then get him to install Windows NT 3.51 (22 discs) and see quite how quickly he gets sick of it!
One thing I noticed is if you try to change a disk that is mounted, the file selection dialog defaults to the directory containing the current disk, but if you eject and then try to mount a new disk, it defaults to PCem's working directory. That means that ejecting first doesn't just involve the extra clicks to eject, it involves even more clicks to navigate back to the directory containing your disk images, which makes it more painful. I'm glad I know now that ejecting first shouldn't be necessary!
Apologies in advance for not responding, I don't check back here very often.
-
- Posts: 20
- Joined: Fri 04 Jul, 2014 7:01 pm
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
As a self-imposed challenge, I eject first... because on a real PC only one medium per drive can be inside.
I'm your biggest fan, Windows 9x series of operating systems!
Re: [FEATURE REQUEST] Removable Media Drive Emulation Overhaul
even if didn't reject first there'd still one image per drive at once