Moved normal exit to headless control script.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s

This commit is contained in:
Willem Cazander 2024-06-30 13:56:18 +02:00
parent ab02b54175
commit 94f532ffa9
3 changed files with 9 additions and 9 deletions

View file

@ -24,7 +24,7 @@ define mb_autoexec_append_stop_fail
endef
define mb_autoexec_append_exit
$(if $(filter on,$(MB_FLIGHT_SCREEN)),$(call mb_autoexec_append_save_screenshot,$(1)))
$(call mb_autoexec_append_cmd,$(1),omsxctl boot_exec_exit)
$(call mb_autoexec_append_cmd,$(1),omsxctl headless_exit)
endef
define mb_autoexec_append_joyporta_mouse
$(call mb_autoexec_append_cmd,$(1),omsxctl plug joyporta mouse)

View file

@ -2,9 +2,6 @@
#
# Adds the following command to openMSX;
#
# 'boot_exec_exit'
# Requested delayed shutdown of openMSX.
#
# 'boot_exec_color_dark'
# Sets the VDP colors to dark color tones.
#
@ -12,11 +9,6 @@
# Displays machine and openMSX version on one line.
#
proc boot_exec_exit {} {
after time 1 "exit 0"
return "Shutdown openMSX"
}
proc boot_exec_color_dark {} {
setcolor 4 000
setcolor 15 777

View file

@ -4,6 +4,9 @@
#
# Adds the following command to openMSX;
#
# 'headless_exit'
# A normal exit of the openMSX emulator.
#
# 'headless_show_gui'
# Enables the renderer and throttle from the inside.
#
@ -27,6 +30,11 @@
set boot_env_renderer_type 0
proc headless_exit {} {
after time 1 "exit 0"
return "Shutdown openMSX"
}
proc headless_show_gui {} {
global renderer
global throttle