Skip to content

allow quotes in conf values#19218

Open
Jamiras wants to merge 3 commits into
libretro:masterfrom
Jamiras:bugfix/conf_quotes
Open

allow quotes in conf values#19218
Jamiras wants to merge 3 commits into
libretro:masterfrom
Jamiras:bugfix/conf_quotes

Conversation

@Jamiras

@Jamiras Jamiras commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Any string written to retroarch.cfg containing double quotes will now explicitly escape the double quote. Other characters are not escaped to prevent breaking of things like paths. When reading the config file, a \" pair will be converted to ". Any other backslashes will be treated as single characters.

Before:

cheevos_password = "it's a "secret"."

Would be loaded as it's a .

Now, it will be written as:

cheevos_password = "it's a \"secret\"."

Which will retrieve the full it's a "secret"..

Other instances of backslashes are not escaped.

rgui_browser_directory = "C:\Games\ROMs"

Related Issues

Fixes #15848

Related Pull Requests

n/a

Reviewers

[If possible @mention all the people that should review your pull request]

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.

Special characters on retroarch.cfg cheevos_password aren't properly escaped.

1 participant