libretro / px68k-libretro

Portable SHARP X68000 Emulator for Libretro
http://hissorii.blog45.fc2.com
GNU General Public License v2.0
45 stars 41 forks source link

Request command-line support for loading floppy *and* hard disk images #127

Open spyffe opened 4 years ago

spyffe commented 4 years ago

It is currently impossible (as far as I can tell after code inspection) to specify both a HDD image and a floppy image on the command line. This would be very useful when initializing hard drives and installing software on them.

(As an aside, the emulator properly supports selecting both types of images when I pass no arguments and pick them through the UI instead. That's extremely slow, though, since the UI obviously doesn't support pasting in paths.)

Here are the parts of the code that would need to be fixed:

In Win68k pmain, the logic for recognizing which drives to populate only allows three cases:

In the RetroArch wrapper, pre_main passes arguments through to P68K, but the only case where it passes -h hdimage.hdf through to the Win68k engine is if the user passes only one argument ending in hdf.

negativeExponent commented 3 years ago

why cmdline? are you using other launchers? i used to just mount an hdf to the HDD0 and change boot order to only boot from floppy. this way you can swap disks while preventing hdd0 to boot. yeah its confusing.

negativeExponent commented 1 month ago

whats the usecase for this mechanics? and is it necessary to boot from HD in this case? or still on FDD?