joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

IMGMAKE : Custom Floppy disk templates #3555

Open darth-crunchus opened 2 years ago

darth-crunchus commented 2 years ago

Is your feature request related to a problem? Please describe.

I've been messing around with imgmake for a little bit now, and while the existing size templates are pretty much the best selection that you could have for a predefined selection of diskettes, there's almost always going to be that one edge case where you need a size that's just not available.

What you want

I'd like to see more floppy disk templates or custom diskette capacities for imgmake.

Describe alternatives you've considered

So, I propose either a new parameter, -sizek (image size in kilobytes, rather than megabytes as in the HD image creation), or an ammendment to the existing type parameter formatting, allowing for up to 9120kb, and down to like 100kb. So, for instance, you could have it be like -t fd_1600. Or -t fd_100. Maybe even set up a "-bsts" (Bytes per Sector, Sectors per Track, Tracks per Side, and # of Sides) parameter that acts like a CHS calculation (because, let's face it, it is), only it requires the bps due to floppies having various values for the bytes per sector parameter.

Additional information

Granted, not all diskettes are meant for IBM compatibles, but the option to potentially create imgs for other OS emulators would admittedly be useful. They would have to beable to be made blank, of course.

Have you checked that no similar feature request(s) exist?

Code of Conduct & Contributing Guidelines

Torinde commented 2 years ago

Agree that'll be useful feature: