No longer sort settings after setting, as it could lead to data loss.
This commit is contained in:
parent
405f408bbe
commit
8a62d0eb01
1 changed files with 13 additions and 12 deletions
|
@ -9,9 +9,22 @@ export SDL_GAMECONTROLLERCONFIG_FILE="/storage/.config/SDL-GameControllerDB/game
|
|||
|
||||
J_DIR="/storage/.config/system"
|
||||
J_CONF="${J_DIR}/configs/system.cfg"
|
||||
J_CONF_LOCK="/tmp/.system.cfg.lock"
|
||||
ES_CONF="/storage/.emulationstation/es_settings.cfg"
|
||||
JSLISTENCONF="${J_DIR}/configs/jslisten.cfg"
|
||||
|
||||
function tocon() {
|
||||
echo -ne "\033[1000H\033[2K==> ${*}" >/dev/console
|
||||
}
|
||||
|
||||
function log() {
|
||||
SOURCE=${1//\/*\//}
|
||||
MESSAGE=${*#${1}}
|
||||
MESSAGE=${MESSAGE# }
|
||||
logger -t ${SOURCE} "${MESSAGE}"
|
||||
echo "$(date) ${SOURCE}: ${MESSAGE}" >>/var/log/messages
|
||||
}
|
||||
|
||||
function get_setting() {
|
||||
if [ ! -z "${3}" ]
|
||||
then
|
||||
|
@ -76,7 +89,6 @@ function set_setting() {
|
|||
echo "${1}=${2}" >> "${J_CONF}"
|
||||
fi
|
||||
fi
|
||||
sort_settings
|
||||
}
|
||||
|
||||
function set_audio() {
|
||||
|
@ -145,14 +157,3 @@ function get_aspect_ratio() {
|
|||
echo ${ASPECT}
|
||||
}
|
||||
|
||||
function tocon() {
|
||||
echo -ne "\033[1000H\033[2K==> ${*}" >/dev/console
|
||||
}
|
||||
|
||||
function log() {
|
||||
SOURCE=${1//\/*\//}
|
||||
MESSAGE=${*#${1}}
|
||||
MESSAGE=${MESSAGE# }
|
||||
logger -t ${SOURCE} "${MESSAGE}"
|
||||
echo "$(date) ${SOURCE}: ${MESSAGE}" >>/var/log/messages
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue