Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Controller Profile does not work on Android by default #16799

Open
davidhedlund opened this issue Jul 21, 2024 · 0 comments
Open

Save Controller Profile does not work on Android by default #16799

davidhedlund opened this issue Jul 21, 2024 · 0 comments

Comments

@davidhedlund
Copy link
Contributor

Description

In the default RetroArch configuration file (retroarch.cfg), the joypad autoconfig directory is set to "/data/user/0/com.retroarch/autoconfig" which requires a rooted Android phone. Most Android phones are not rooted. Due to this setting, RetroArch is unable to write files to this directory.

I just added this temporary workaround for Android in our Joypad Auto Configuration guide: https://docs.libretro.com/guides/controller-autoconfiguration/#android-configuration

Expected behavior

This improvement streamlines the process for users, eliminating the need to follow the Android section in our Joypad Auto Configuration guide (https://docs.libretro.com/guides/controller-autoconfiguration/#android-configuration) in order to generate autoconfig files for Android users.

Update configuration file

The current default retroarch.cfg contains:

joypad_autoconfig_dir = "/data/user/0/com.retroarch/autoconfig"

I propose that we replace the default joypad autoconfig directory path with a user-accessible location:

joypad_autoconfig_dir = "/storage/emulated/0/RetroArch/autoconfig"

Autoconfig file migration

To ensure independence of the Update Controller Profiles option for the controllers to work by default, I suggest that RetroArch automatically copying the system autoconfig files from /data/user/0/com.retroarch/autoconfig to the newly designated user directory /storage/emulated/0/RetroArch/autoconfig directory.

Actual behavior

"Error saving controller profile."

The joypad autoconfig file is not generated.

Steps to reproduce the bug

  • Settings > Input > Retropad Binds > Port 1 Controls:
  • Set All Controls
  • Save Controller Profile

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.19.1

Environment information

  • OS: Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant