Moved settings save on exit false to settings override.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -3s

This commit is contained in:
Willem Cazander 2024-06-27 00:02:36 +02:00
parent 6736f35076
commit d653e900f0
3 changed files with 1 additions and 13 deletions

View file

@ -14,7 +14,6 @@ MB_OPENMSX_SCALE_FACTOR ?= 3
MB_OPENMSX_THROTTLE ?= off MB_OPENMSX_THROTTLE ?= off
MB_OPENMSX_RENDERER ?= MB_OPENMSX_RENDERER ?=
MB_OPENMSX_CTLCACHE ?= $(MB_CACHE)/omsxctl MB_OPENMSX_CTLCACHE ?= $(MB_CACHE)/omsxctl
MB_OPENMSX_SAVE_ON_EXIT ?= off
# TODO: create openMSX issue to clean share: https://github.com/openMSX/openMSX/issues/1672 # TODO: create openMSX issue to clean share: https://github.com/openMSX/openMSX/issues/1672
define _mb_openmsx_setup define _mb_openmsx_setup
@ -35,8 +34,6 @@ define _mb_openmsx_run
JOYPORTB=$(MB_OPENMSX_JOYPORTB) \ JOYPORTB=$(MB_OPENMSX_JOYPORTB) \
SCALE_FACTOR=$(MB_OPENMSX_SCALE_FACTOR) \ SCALE_FACTOR=$(MB_OPENMSX_SCALE_FACTOR) \
SPEED=$(MB_OPENMSX_SPEED) \ SPEED=$(MB_OPENMSX_SPEED) \
SAVE_SETTINGS_ON_EXIT=$(MB_OPENMSX_SAVE_ON_EXIT) \
SOUND_DRIVER=$(MB_OPENMSX_SOUND_DRIVER) \
RENDERER=$(MB_OPENMSX_RENDERER) \ RENDERER=$(MB_OPENMSX_RENDERER) \
THROTTLE=$(MB_OPENMSX_THROTTLE) \ THROTTLE=$(MB_OPENMSX_THROTTLE) \
$(PATH_OPENMSX)/openmsx \ $(PATH_OPENMSX)/openmsx \

View file

@ -3,9 +3,6 @@
# Typically used in automation tools which run openMSX without human interaction. # Typically used in automation tools which run openMSX without human interaction.
# Supported environment variables by this script; # Supported environment variables by this script;
# #
# SAVE_SETTINGS_ON_EXIT=off
# Disables automatic settings saving.
#
# RENDERER=SDL # RENDERER=SDL
# Override video output from command line. # Override video output from command line.
# #
@ -25,13 +22,6 @@
# Inserts mouse in joyportb. # Inserts mouse in joyportb.
# #
if {[info exists ::env(SAVE_SETTINGS_ON_EXIT)] && ([string trim $::env(SAVE_SETTINGS_ON_EXIT)] != "")} {
if {[catch {set save_settings_on_exit [string trim $::env(SAVE_SETTINGS_ON_EXIT)]} err_msg]} {
puts stderr "error: env.SAVE_SETTINGS_ON_EXIT value $err_msg"
exit 1
}
}
if {[info exists ::env(RENDERER)] && ([string trim $::env(RENDERER)] != "")} { if {[info exists ::env(RENDERER)] && ([string trim $::env(RENDERER)] != "")} {
if {[catch {set renderer [string trim $::env(RENDERER)]} err_msg]} { if {[catch {set renderer [string trim $::env(RENDERER)]} err_msg]} {
puts stderr "error: env.RENDERER value $err_msg" puts stderr "error: env.RENDERER value $err_msg"

View file

@ -1,6 +1,7 @@
<!DOCTYPE settings SYSTEM 'settings.dtd'> <!DOCTYPE settings SYSTEM 'settings.dtd'>
<settings> <settings>
<settings> <settings>
<setting id="save_settings_on_exit">false</setting>
<setting id="sound_driver">null</setting> <setting id="sound_driver">null</setting>
</settings> </settings>
<bindings/> <bindings/>