xemu-project / xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
https://xemu.app
Other
2.57k stars 258 forks source link

Where do I put SDL_GameControllerDB.txt? #1683

Open fartboygh opened 6 days ago

fartboygh commented 6 days ago

Bug Description

My understanding is this emulator uses SDL2 and this should be possible. Or is this not supported?

Expected Behavior

Most emulators you can put it either in the emulator's directory or its config directory and it would allow you to add new controllers for use.

xemu Version

Version: 0.7.127 Branch: master Commit: b4ce2b58d09baa6dfd17c0bcab2e505df9f310e4 Date: Sun Jun 16 00:21:49 UTC 2024

System Information

Windows 10

Additional Context

No response

mborgerson commented 6 days ago

I believe you can place the file anywhere, and specify the path with the environment variable SDL_HINT_GAMECONTROLLERCONFIG_FILE

fartboygh commented 6 days ago

Is that a command line thing?

mborgerson commented 6 days ago

You can do it through the GUI if you wish https://www.redswitches.com/blog/environment-variables/#method-1-set-environment-variables-through-the-gui

fartboygh commented 6 days ago

I don't really want to mess with my overall system settings and perhaps break something. Is there not a default directory that this program looks at?

Edit: I tried it. Doesn't work anyways. Same file I used with Ryujinx and Duckstation.