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

* platform: Honor the LIBRETRO_CHEATS_DIRECTORY environment variable. #17440

Merged

Conversation

Apteryks
Copy link
Contributor

Yet another environment variable useful to have. I think this may be the last one in a while (these have been motivated by improving the user experience of the retroarch package in GNU Guix), as everything now seems functional/usefully configured out of the box.

  • frontend/drivers/platform_unix.c (libretro_cheats_directory): New variable.
    (frontend_unix_get_env): Set DEFAULT_DIR_CHEATS to the value of the LIBRETRO_CHEATS_DIRECTORY environment variable, if available.
  • frontend/drivers/platform_win32.c: Likewise.
  • configuration.c (config_load_file) <libretro_cheats_directory>: New variable. Use the values of the LIBRETRO_CHEATS_DIRECTORY environment variables instead of their corresponding configured values, when set.
  • docs/retroarch.6: Document it.
  • retroarch.c (retroarch_print_help): Extend help text.

Reviewers

@JesseTG

* frontend/drivers/platform_unix.c
(libretro_cheats_directory): New variable.
(frontend_unix_get_env): Set DEFAULT_DIR_CHEATS to the value of
the LIBRETRO_CHEATS_DIRECTORY environment variable, if available.
* frontend/drivers/platform_win32.c: Likewise.
* configuration.c (config_load_file)
<libretro_cheats_directory>: New variable. Use the values of
the LIBRETRO_CHEATS_DIRECTORY environment variables instead of their
corresponding configured values, when set.
* docs/retroarch.6: Document it.
* retroarch.c (retroarch_print_help): Extend help text.
@LibretroAdmin LibretroAdmin merged commit 52320df into libretro:master Jan 20, 2025
30 checks passed
@Apteryks
Copy link
Contributor Author

Thanks for the lightning fast merge!

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

Successfully merging this pull request may close these issues.

2 participants