msxbuild/lib/make/mb_msxpipe.mk

39 lines
1.6 KiB
Makefile
Raw Normal View History

2024-07-02 14:31:42 +00:00
define mb_msxpipe_safe_cmd
$(call mb_autoexec_write_default,$(1))
$(call mb_autoexec_append_safe_cmd,$(1),$(2))
$(call mb_autoexec_append_exit,$(1))
2024-07-02 14:31:42 +00:00
$(call mb_openmsx_dosctl,$(1),$(3))
endef
2024-07-02 14:31:42 +00:00
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_msxpipe_safe_cmd,"Runs openMSX and safely executes one command.","<dir> <cmd> [machine]")
2024-07-02 14:31:42 +00:00
define mb_msxpipe_safe_test
$(call mb_autoexec_write_default,$(1))
$(call mb_autoexec_append_safe_test,$(1),$(2))
$(call mb_autoexec_append_exit,$(1))
2024-07-02 14:31:42 +00:00
$(call mb_openmsx_dosctl,$(1),$(3))
endef
2024-07-02 14:31:42 +00:00
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_msxpipe_safe_test,"Runs openMSX and safely executes one test.","<dir> <cmd> [machine]")
2024-07-02 16:20:46 +00:00
define _mb_msxpipe_run_gui
2024-07-02 14:31:42 +00:00
$(call mb_autoexec_write_default,$(1))
$(call mb_autoexec_append_stop_fail,$(1))
$(call mb_autoexec_append_show_gui,$(1))
$(if $(filter mouse,$(4)),$(call mb_autoexec_append_joyporta_mouse,$(1)))
2024-07-02 14:31:42 +00:00
$(call mb_autoexec_append_echo,$(1),mb::help Run shutdown to stop emulation)
$(if $(2),$(call mb_autoexec_append_echo,$(1),mb::show command $(2)))
$(if $(2),$(call mb_autoexec_append_cmd,$(1),$(2)))
$(call mb_openmsx_dosctl,$(1),$(3))
endef
2024-07-02 16:20:46 +00:00
define mb_msxpipe_run_gui
$(call _mb_msxpipe_run_gui,$(1),$(2),$(3))
endef
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_msxpipe_run_gui,"Runs openMSX forever with renderer and optionals.","<dir> [cmd] [machine]")
2024-07-02 16:20:46 +00:00
define mb_msxpipe_run_gui_mouse
$(call _mb_msxpipe_run_gui,$(1),$(2),$(3),mouse)
endef
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_msxpipe_run_gui_mouse,"Runs openMSX forever with renderer and mouse and optionals.","<dir> [cmd] [machine]")