Skip to content

GameList: Replace [ and ] with '{{' and '}}' to fix custom attributes#14227

Open
F0bes wants to merge 1 commit intomasterfrom
escape-the-ini
Open

GameList: Replace [ and ] with '{{' and '}}' to fix custom attributes#14227
F0bes wants to merge 1 commit intomasterfrom
escape-the-ini

Conversation

@F0bes
Copy link
Copy Markdown
Member

@F0bes F0bes commented Mar 28, 2026

Description of Changes

Should fix #12217

Whenever the path has [ or ] in the name, the custom attributes ini gets confused since [ and ] and used to denote ini sections.

Technically, if someone has the exact same file, but manually set [ and ] to be {{ and }}, both files will share custom attributes (hence why I didn't just do { and }).
The alternative would be to URL encode (We already have that in our Path namespace), but this would break existing configurations. I think this is the lesser of two evils?

Rationale behind Changes

Some people like having square brackets in their ISO names, this bug prevented them from setting custom titles or regions for those files.

Suggested Testing Steps

Try assigning a custom title or region to a game whose files (or directory) has square brackets in the name.

Did you use AI to help find, test, or implement this issue or feature?

It told me to hash it. No thanks

@Mrlinkwii Mrlinkwii added this to the Release 2.8 milestone Apr 2, 2026
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.

[BUG]: Changing game title metadata is broken

2 participants