Polprzewodnikowy / SummerCart64

SummerCart64 - a fully open source N64 flashcart
https://summercart64.dev
GNU General Public License v3.0
405 stars 22 forks source link

Add ability to upload file to SD over USB #42

Closed networkfusion closed 10 months ago

networkfusion commented 11 months ago

When developing the N64FlashcartMenu, it is advantagous to be able to "save" or "overwrite" certain ROM's to the SD card without having to remove the SD card.

examples:

Currently it requires that I remove the SD card to manage its content.

I propose that theUSB loader functionality is able to support it.

Polprzewodnikowy commented 11 months ago

sc64deployer already can upload files via USB but app running on the N64 needs to listen to the commands. No direct SD card access via USB was a deliberate choice as it would add too much complexity for my liking. One improvement I might add to the PC app is ability to close itself after reaching EOF from stdio. It would be much easier to add batch commands and pipe stdio as debug command, something like echo '@output/sc64menu.n64@' | sc64deployer debug

Polprzewodnikowy commented 10 months ago

I thought about this issue and there's a better way to achieve this. To do this, it is necessary to use something like FUSE or WinFSP and have daemon software running on the N64. For instance N64FlashcartMenu can have option to put it in special file transfer mode while another piece of software running on the PC would communicate via UNFLoader protocol and expose SD card inserted into flashcart as just regular drive. This is much more user friendly as opposed to using terminal tools. As a bonus this would enable file transfer not only on the SC64, but also any other flashcart capable of running N64FlashcartMenu.

Closing this issue as this needs to be implemented elsewhere.