2024-07-02 01:27:14 +00:00
2024-07-02 14:31:42 +00:00
d e f i n e m b _ m s x p i p e _ s a f e _ c m d
$( call mb_autoexec_write_default,$( 1) )
2024-07-02 01:27:14 +00:00
$( 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) )
2024-07-02 01:27:14 +00:00
e n d e f
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 01:27:14 +00:00
2024-07-02 14:31:42 +00:00
d e f i n e m b _ m s x p i p e _ s a f e _ t e s t
$( call mb_autoexec_write_default,$( 1) )
2024-07-02 01:27:14 +00:00
$( 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) )
2024-07-02 01:27:14 +00:00
e n d e f
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 01:27:14 +00:00
2024-07-02 16:20:46 +00:00
d e f i n e _ m b _ m s x p i p e _ r u n _ g u i
2024-07-02 14:31:42 +00:00
$( call mb_autoexec_write_default,$( 1) )
2024-07-02 01:27:14 +00:00
$( 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) )
2024-07-02 01:27:14 +00:00
e n d e f
2024-07-02 16:20:46 +00:00
d e f i n e m b _ m s x p i p e _ r u n _ g u i
$( call _mb_msxpipe_run_gui,$( 1) ,$( 2) ,$( 3) )
2024-07-02 01:27:14 +00:00
e n d e f
2024-07-02 16:22:13 +00:00
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 01:27:14 +00:00
2024-07-02 16:20:46 +00:00
d e f i n e m b _ m s x p i p e _ r u n _ g u i _ m o u s e
$( call _mb_msxpipe_run_gui,$( 1) ,$( 2) ,$( 3) ,mouse)
2024-07-02 01:27:14 +00:00
e n d e f
2024-07-02 16:22:13 +00:00
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]" )
2024-07-02 01:27:14 +00:00