Project

General

Profile

Emulator Issues #12046

Feature request: Allow custom path for complete dolphin-emu folder

Added by ds22x 7 months ago. Updated 4 months ago.

Status:
Questionable
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Android
Issue type:
Feature request
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

As previously mentioned in pr7920, allowing to set a custom path for the entire dolphin-emu folder (especially for Android) would not only allow for easier access to the dolpin-emu folder files, it would also allow it to be put on external storage, which would benefit devices with limited internal storage (E.G. the Nvidia Shield), as currently it doesn't allow for GameCube memory card, savestates and shader cache files to be put on external storage.

History

#1 Updated by JosJuice 7 months ago

  • Issue type changed from Bug to Feature request
  • Status changed from New to Accepted
  • Operating system Android added
  • Operating system deleted (N/A)

Accepting for Android only. We will probably want to add this before Google forces scoped storage on Google Play apps, since that will prevent us from placing the dolphin-emu folder outside of app-specific storage without the user explicitly giving us access to some other location, more or less requiring us to put the dolphin-emu folder in app-specific storage by default (which as you may know will mean that the whole dolphin-emu folder gets deleted if you uninstall the app – something that users might not want, especially since an uninstall is required when switching between Google Play builds and dolphin-emu.org builds).

The reason why I'm not accepting this for non-Android systems is because it's not clear how we should save the setting of which dolphin-emu folder location to use, since we obviously can't store it in dolphin-emu. On Android we can just use the Android preferences system, which we already use for some settings. Also, non-Android builds (at least on some OSes) already have the portable.txt mechanism which accomplishes essentially the same thing.

#2 Updated by ryanebola16 6 months ago

#3 Updated by JosJuice 6 months ago

#4 Updated by JosJuice 4 months ago

  • Status changed from Accepted to Questionable

Actually, after learning more about the restrictions of scoped storage, I believe that it would be prohibitively difficult to support having the dolphin-emu folder anywhere other than app-specific storage when scoped storage is active, even with the user granting permission. Perhaps it's best to not add this feature to then have to remove it later.

#5 Updated by ds22x 4 months ago

Would that also mean that the current available custom paths would have to be removed?
Because if not, at least a path for the GC folder would be a nice addition to the list, as it is currently not possible to keep those on external storage, while it is possible to keep Wii savefiles externally stored due to them being integrated into the Wii's nand.

#6 Updated by JosJuice 4 months ago

It probably wouldn't be too hard to support custom paths for single files under scoped storage, like the SD card and raw GameCube memory cards. I'm less hopeful about things like the Wii NAND and GameCube GCI folders – those would probably need to be removed for devices running Android 11 and up.

#7 Updated by ds22x 4 months ago

IIRC, M64Plus FZ seems to have support for folders with scoped storaged, so it doesn't seem to be out of the realm of possibility

#8 Updated by JosJuice 4 months ago

It's not impossible, but it's really tricky if all the folder management code is in C++.

#9 Updated by MayImilae 4 months ago

I find it odd that no one has mentioned that you can already move the Dolphin Emulator folder on all platforms except android. In fact, when the Global User Directory system was implemented, the ability to move it was built right now from the start! (though again, exception being Android). We even have a guide for it! https://dolphin-emu.org/docs/guides/controlling-global-user-directory/

Of course this has already been defined as an Android specific issue, but just mentioning, this is functionality that is already standard on our other platforms. Android just makes it way more complicated.

Also available in: Atom PDF