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

Adding es_systems config macro for parent directories #680

Open
eib opened this issue Sep 8, 2020 · 0 comments · May be fixed by #681
Open

Adding es_systems config macro for parent directories #680

eib opened this issue Sep 8, 2020 · 0 comments · May be fixed by #681

Comments

@eib
Copy link

eib commented Sep 8, 2020

I'm trying to make my EmulationStation configuration "portable", as in self-contained to a single folder (anywhere) and that means getting es_system.cfg to use relative paths for the system <command> values. My target is Windows PC (using builds from jdrassa's mirror of this repo), which makes my task harder than simply using bash magic like $(dirname %ROM%)/....

In digging around this codebase and the docs, I see that there are already 3 macros (%ROM%, %BASENAME%, and %ROM_RAW%) that work with <command>. There's also some tilde magic, but that only applies to <path>.

I'd like to see an additional "macro" or two: the directory of the executable (could be called %ES_HOME%) and the ROM's parent directory (could be called %ROM_DIR%). I think that would give me (and others) enough flexibility to define the "perfect" folder structure on our own.

eib added a commit to eib/EmulationStation that referenced this issue Sep 8, 2020
Adds `%ES_HOME%` and `%ROM_DIR%` macros to `<command>` fields in `es_systems.cfg`.

Fixes RetroPie#680.
@eib eib linked a pull request Sep 8, 2020 that will close this issue
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 a pull request may close this issue.

1 participant