Closed illusion0001 closed 11 months ago
@bucanero ready for review
I was checking this, and to keep consistency across platforms and versions, I suggest we do like on the PS Vita version.
Add an usb source
setting: https://github.com/bucanero/apollo-vita/blob/ce19c763d65ab008290ff86cc346b9f4a73ac836/source/settings.c#L49
the possible options should be auto, usb0, usb1, ... usb7, fake usb
, https://github.com/bucanero/apollo-vita/blob/ce19c763d65ab008290ff86cc346b9f4a73ac836/source/settings.c#L19
we can add auto
as first option. In method update_usb_path()
Auto-detect should scan all usb drives like currently do ( https://github.com/bucanero/apollo-ps4/blob/d6e9d7c1b43e4daf448879817a5cd9a833375d8e/source/main.c#L371-L373 ), but when a valid drive is detected, we can ask the user "do you want to use USB x?" to confirm. Something like:
sprintf(path, USB_PATH "PS4/", i);
if (dir_exists(path) == SUCCESS && show_dialog(DIALOG_TYPE_YESNO, "Do you want to use %s?", path))
return;
saves.c
or the save loadingI hope it's clear (you can check the Vita source to get the idea), but if not just ping me on discord 👍
I have added the USB selection under "Settings" , including auto/fake options in f27d5a3a7b9137d86090468733521011c52e2389
I'm closing this PR but feel free to open a new one if you want to add some improvements.
Fixes #121