mirror of
https://github.com/RetroDECK/components-archive.git
synced 2026-08-21 14:06:38 +00:00
26 lines
556 B
Bash
Executable file
26 lines
556 B
Bash
Executable file
#!/bin/bash
|
|
|
|
export lindbergh_config="$XDG_CONFIG_HOME/oricutron/lindbergh.ini"
|
|
export controls_config="$XDG_CONFIG_HOME/oricutron/controls.ini"
|
|
|
|
_prepare_component::lindbergh() {
|
|
local action="$1"
|
|
shift
|
|
|
|
local component_config="$(get_own_component_path)/rd_config"
|
|
|
|
case "$action" in
|
|
|
|
reset)
|
|
log i "----------------------"
|
|
log i "Resetting Lindbergh Loader"
|
|
log i "----------------------"
|
|
|
|
create_dir -d "$XDG_CONFIG_HOME/lindbergh/"
|
|
cp -fr "$component_config/"* "$XDG_CONFIG_HOME/lindbergh/"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
} |