BASE: Add default extrapath and themepahth when running in tree #4839
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This means building and running scummvm in tree works out of the box.
Unfortnatelly registering them as defaults would not work as ConfMan::hasKey() returns false when only defined as a default, and in most places this is checked before using those paths. So if we wanted to use defaults we would need to replace all those checks with a check that the path is not empty.
There is a drawback to using the session domain though: it takes priority over all other domains. So a custom extrapath defined for a game will be ignored. I tried to mitigate the issue by only adding those path if they exist(so that it does not break shadow builds for example). I am not sure if this is a big issue or not. I suspect it could be an issue for example when using munt for some games and a custom extrapath for those games to point to the MT32 rom files. There is a workaround that is to explicitly set an extrapath in the global settings so that it is not added to the session settings, but it is not obvious.
So I propose this as a pull request so that the benefit and drawbacks can be discussed and weighted.