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

Allow multiple --appendconfig options in command line #17221

Open
ToxicFrog opened this issue Nov 30, 2024 · 0 comments
Open

Allow multiple --appendconfig options in command line #17221

ToxicFrog opened this issue Nov 30, 2024 · 0 comments

Comments

@ToxicFrog
Copy link

Description

If --appendconfig is used multiple times, only the last one takes effect; others are silently ignored.

This is fine if you're just invoking it directly; separate the configs you want with | and it works. But if you have something like this:

$ alias retroarch='retroarch --appendconfig=myconfig.cfg'
$ retroarch --appendconfig=myotherconfig.cfg

Only myotherconfig.cfg is loaded. The problem is obvious in that example, but it becomes much less so if, say, your distro ships a retroarch wrapper script that uses --appendconfig to apply distro-specific defaults, or if you're managing a family games library and want to use --appendconfig to make sure that shared save files and whatnot get stored in the right places.

Expected behavior

Ideally, all config files specified in any --appendconfig are loaded, in the order in which they appear. Failing that, an obvious error message saying that --appendconfig is only allowed once; that would at least have saved me a solid hour of debugging.

Actual behavior

retroarch appears to run without problems, but all uses of --appendconfig except the first are silently ignored.

Version/Commit

1.18.0.

Environment information

  • OS: nixos
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