AZO234 / NP2kai

Neko Project II kai
http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
MIT License
254 stars 62 forks source link

[REQ] .m3u playlist support for inserting multiple disks automatically #26

Open gingerbeardman opened 6 years ago

gingerbeardman commented 6 years ago

libretro MSX, PS1 and X68 cores support .m3u playlist to load multiple disks at once. https://www.reddit.com/r/miniSNESmods/comments/7tccrf/list_of_cores_from_kmfdmanic_set_their_command/

Game.m3u

Game_Disk_1.fdd Game_Disk_2.fdd Game_Disk_3.fdd

First two lines disks are loaded into drives FDD1 and FDD2.

Also with this it would be useful for "disk swap" function to cycle through the discs in the playlist.

Please consider these features for inclusion in NP2kai.

Thank you!

i30817 commented 6 years ago

Could be useful as long as there aren't games that expect two floppies at once (like x68k). I have a easy way to create m3u files (a script i made) so i'd probably use this for the retroarch version.

gingerbeardman commented 6 years ago

PX68k already supports m3u. It loads the first two disks into floppy 0 and 1. The rest of the playlist can be accessed through the swap function.

AZO234 commented 6 years ago

I'm mind about follow 2 issues.

  1. Retroarch's Swap Disc API uses .m3u file.
  2. PX68k reads .m3u file when start.

I like second issue. I think I want to implement that.
But there may be people who are confused.

gingerbeardman commented 6 years ago

It can be explained in documentation with examples. Some other cores already work this way: MSX, PS1, PX68K

AZO234 commented 6 years ago

I could apply for Disk Swap Interface. Please try it.

gingerbeardman commented 6 years ago

I'll try

i30817 commented 6 years ago

I opened a issue request on beetle for a 'autoswap' idea that might (or might not) interest you because it's related to this:

https://github.com/libretro/beetle-psx-libretro/issues/305

G7200 commented 6 years ago

I tested this on my SNESC.

"Disk Control" only appears in Retroarch when loading a .m3u file. But np2kai won't load the actual first disk image (in my case it's "Game_Disk_1.d88" from the .m3u playlist). All I get is "システムディスクをセットしてください" (please insert disk system).

You always have to select the game disk manually via "Disk Image Append". After that swapping works.

Why is "Swap Disks on Drive" (where you can change FDD1/2) under the section "Options" and not under the section "Disk Control"?

AZO234 commented 6 years ago

There seems to be a problem with loading the m3u file, and it is under investigation.

Libretro's image swap interface can swap on only one slot. So I implemented a floppy drive selection for 'Option'.

AZO234 commented 6 years ago

See also, https://forums.libretro.com/t/m3u-file-loading/15716