No longer sort settings after setting, as it could lead to data loss.

This commit is contained in:
fewtarius 2023-08-03 13:30:56 +00:00
parent 405f408bbe
commit 8a62d0eb01
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -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
}