xenia icon indicating copy to clipboard operation
xenia copied to clipboard

Per-game configs ignored

Open krashd8 opened this issue 5 years ago • 8 comments

The FAQ states that per-game configs should be placed in config\TitleID.config.toml

I created the 'config' folder in Documents\Xenia (I don't use portable.txt) so that it is next to 'content' and 'shaders' and inside it I created "5454082B.config.toml" as I assume TitleID refers only to the 8-digit game prefix. Inside this document I placed variables exactly as they appear in the main xenia.config.toml...

[GPU] gpu = "vulkan"

But Xenia ignores it every time. I have tried placing the config file (both with and without the config directory) in a dozen places, I have tried placing the TitleID inside parenthesis, I have tried using different variables to see if the game just doesn't like Vulkan. It seem like Xenia just ignores per-game configs contrary to what it says in the FAQ.

krashd8 avatar Nov 27 '20 15:11 krashd8

Some config options take effect before the game is launched at all. That's inconsistent overall, per-game configs are currently mostly not recommended, as before they were added, it was assumed that config variables are never changed during the emulator's execution, and with per-game configs, the emulator may be left in an indeterminate state in some cases if parts of the code expect the values to be the same during initialization and gameplay. Rechecking config variables and separating those that can and those that can't be overridden by the game is still an unfinished task.

Triang3l avatar Nov 27 '20 15:11 Triang3l

Ahh, so if using a custom config it is best to have xenia load into that config at program start? Can I do that with a command line argument such as "--config config\5454082B.config.toml" or do the command line arguments only work with a frontend program?

krashd8 avatar Nov 28 '20 13:11 krashd8

Are per-game configs still not recommended or did it get fixed since last November?

sylvain-lec avatar Jun 16 '21 14:06 sylvain-lec

@Monkeey That'd require heavy rework of Xenia's architecture, so no, no work has been done on this.

Triang3l avatar Jun 16 '21 14:06 Triang3l

Thanks a lot for your answer @Triang3l , what is the recommend way to deal with games needing different settings? Is it best to just have one Xenia folder per config?

sylvain-lec avatar Jun 16 '21 14:06 sylvain-lec

You can make separate configs and make shortcuts for each game ala xenia.exe --config gameconfig.toml, no need for multiple folders

jgoyvaerts avatar Jun 16 '21 20:06 jgoyvaerts

This is great @jgoyvaerts , thanks!

sylvain-lec avatar Jun 17 '21 09:06 sylvain-lec