Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PortMaster/mod_EmuELEC.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ if declare -f get_controls >/dev/null 2>&1 && ! declare -f _pm_get_controls_orig
get_controls() {
_pm_get_controls_orig "$@"
[ "${#sdl_controllerconfig}" -gt 100000 ] && sdl_controllerconfig=""

# Override SDL_GAMECONTROLLERCONFIG_FILE because PortMaster sets it to
# /tmp/gamecontrollerdb.txt, a copy of ${HOME}/ports/PortMaster/gamecontrollerdb.txt
# that lacks the user-defined button mappings.
export SDL_GAMECONTROLLERCONFIG_FILE="${HOME}/.config/SDL-GameControllerDB/gamecontrollerdb.txt"
}
fi

Expand Down