Skip to content

Config: Finish wiring up Regex app overrides #5388

Merged
neobrain merged 2 commits intoFEX-Emu:mainfrom
Sonicadvance1:123
Apr 2, 2026
Merged

Config: Finish wiring up Regex app overrides #5388
neobrain merged 2 commits intoFEX-Emu:mainfrom
Sonicadvance1:123

Conversation

@Sonicadvance1
Copy link
Copy Markdown
Member

@Sonicadvance1 Sonicadvance1 commented Mar 20, 2026

This wasn't quite wired up exactly how we wanted it. It was previously
matching against the opaque file config handle, which can be anything.

Instead compare it to the appname that now gets passed over to it for
matching.

This allows us to do the following:

{
    "Config": {
        "ProfileStats": "1",
        "X87ReducedPrecision": "1",
        "TSOEnabled": "1",
        "VectorTSOEnabled": "0",
        "MemcpySetTSOEnabled": "0",
        "HalfBarrierTSOEnabled":"1",
        "MaxInst": "500",
        "Multiblock": "1"
    },
    "AppOverrides" : {
        "setup*" : {
            "Comment": [
                "292030 - The Witcher 3: Wild Hunt"
            ],
            "X87ReducedPrecision": "0"
        }
     }
}

Based on #5386 which needs to get merged first.

Comment thread Source/Common/Config.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread unittests/APITests/WildcardMatcher.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread FEXCore/Source/Utils/WildcardMatcher.cpp Outdated
Comment thread FEXCore/Source/Utils/WildcardMatcher.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Copy link
Copy Markdown
Member

@neobrain neobrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there. Could you also squash the commits by author? There's no need for this change set to be broken into 13 patches, 2 should suffice.

Comment thread FEXCore/Source/Utils/WildcardMatcher.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
@neobrain
Copy link
Copy Markdown
Member

Based on #121 which needs to get merged first.

I'm guessing this is done now? Not sure what PR this was intended to reference since 121 probably wasn't it.

@Sonicadvance1
Copy link
Copy Markdown
Member Author

Based on #121 which needs to get merged first.

I'm guessing this is done now? Not sure what PR this was intended to reference since 121 probably wasn't it.

Oop, meant to be the PR number.

@neobrain
Copy link
Copy Markdown
Member

Oop, meant to be the PR number.

Well, yes, but which one? Can you edit the description please?

@Sonicadvance1
Copy link
Copy Markdown
Member Author

Getting there. Could you also squash the commits by author? There's no need for this change set to be broken into 13 patches, 2 should suffice.

Squashed.

Copy link
Copy Markdown
Member

@neobrain neobrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last round, good to merge afterwards. (Though note we're back to 6 commits now...)

Comment thread FEXCore/Source/Utils/WildcardMatcher.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
Comment thread Source/Common/Config.cpp Outdated
badumbatish and others added 2 commits April 1, 2026 10:45
Add support for question mark and plus mark in regex, supply testing for star

Added more characters to the regex alphabets, add more test case

Added support for regex matching of configs, awaiting reviews

Rename variable to CamelCase

Addresses PR reviews

Remove unnecessary features and test cases

Rewrite to naive regex with dp

Addresses PR reviews

Build fixes

Code Review
This wasn't quite wired up exactly how we wanted it. It was previously
matching against the opaque file config handle, which can be anything.

Instead compare it to the appname that now gets passed over to it for
matching.

This allows us to do the following:
```
{
    "Config": {
        "ProfileStats": "1",
        "X87ReducedPrecision": "1",
        "TSOEnabled": "1",
        "VectorTSOEnabled": "0",
        "MemcpySetTSOEnabled": "0",
        "HalfBarrierTSOEnabled":"1",
        "MaxInst": "500",
        "Multiblock": "1"
    },
    "AppOverrides" : {
        "setup*" : {
            "Comment": [
                "292030 - The Witcher 3: Wild Hunt"
            ],
            "X87ReducedPrecision": "0"
        }
     }
}
```

Based on FEX-Emu#121 which needs to get merged first.

Code Review

Code Review: Class deletion
@Sonicadvance1
Copy link
Copy Markdown
Member Author

Last round, good to merge afterwards. (Though note we're back to 6 commits now...)

That's okay, commits are free.

@neobrain neobrain merged commit c6d2ce0 into FEX-Emu:main Apr 2, 2026
13 checks passed
@Sonicadvance1 Sonicadvance1 deleted the 123 branch April 2, 2026 09:01
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.

3 participants