45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
|
|
||
|
# TODO: rename
|
||
|
|
||
|
define mb_autoexec_safe_cmd
|
||
|
$(call mb_autoexec_write_default,$(1),$(3))
|
||
|
$(call mb_autoexec_append_safe_cmd,$(1),$(2))
|
||
|
$(call mb_autoexec_append_exit,$(1))
|
||
|
endef
|
||
|
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_autoexec_safe_cmd,"Runs openMSX and safely executes a command.","<dir> <cmd> [text-mode]")
|
||
|
|
||
|
define mb_autoexec_safe_test
|
||
|
$(call mb_autoexec_write_default,$(1),$(3))
|
||
|
$(call mb_autoexec_append_safe_test,$(1),$(2))
|
||
|
$(call mb_autoexec_append_exit,$(1))
|
||
|
endef
|
||
|
MB_DOC_HELP_FUNCTION += $(call mb_doc_function,mb_autoexec_safe_test,"Runs openMSX and safely executes a test.","<dir> <cmd> [text-mode]")
|
||
|
|
||
|
define _mb_autoexec_show_gui
|
||
|
$(call mb_autoexec_write_default,$(1),$(2))
|
||
|
$(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)))
|
||
|
$(call mb_autoexec_append_echo,$(1),Type shutdown to stop emulation)
|
||
|
$(if $(3),$(call mb_autoexec_append_echo,$(1),Running command: $(3)))
|
||
|
$(if $(3),$(call mb_autoexec_append_cmd,$(1),$(3)))
|
||
|
endef
|
||
|
|
||
|
define mb_autoexec_show_gui40
|
||
|
$(call _mb_autoexec_show_gui,$(1),40,$(2))
|
||
|
endef
|
||
|
|
||
|
define mb_autoexec_show_gui40_mouse
|
||
|
$(call _mb_autoexec_show_gui,$(1),40,$(2),mouse)
|
||
|
endef
|
||
|
|
||
|
define mb_autoexec_show_gui80
|
||
|
$(call _mb_autoexec_show_gui,$(1),80,$(2))
|
||
|
endef
|
||
|
|
||
|
define mb_autoexec_show_gui80_mouse
|
||
|
$(call _mb_autoexec_show_gui,$(1),80,$(2),mouse)
|
||
|
endef
|
||
|
|
||
|
|