2 Copyright © 2003, The AROS Development Team. All rights reserved.
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <aros/debug.h>
10 #include <proto/intuition.h>
11 #include <proto/muimaster.h>
12 #include <proto/workbench.h>
13 #include <proto/dos.h>
16 #include <libraries/mui.h>
17 #include <workbench/startup.h>
21 #include "executecommand.h"
25 void cleanup(CONST_STRPTR message
)
27 ExecuteCommand_Deinitialize();
31 ShowError(NULL
, NULL
, message
, TRUE
);
40 int main(int argc
, char **argv
)
44 STRPTR initial
= NULL
;
46 if (!ExecuteCommand_Initialize()) cleanup(_(MSG_ERROR_CLASSES
));
50 struct WBStartup
*startup
= (struct WBStartup
*) argv
;
52 if (startup
->sm_NumArgs
> 1)
54 parent
= startup
->sm_ArgList
[1].wa_Lock
;
55 initial
= startup
->sm_ArgList
[1].wa_Name
;
59 application
= (Object
*)ExecuteCommandObject
,
60 MUIA_ExecuteCommand_Parent
, (IPTR
) parent
,
61 MUIA_ExecuteCommand_Initial
, (IPTR
) initial
,
64 if (application
!= NULL
)
66 DoMethod(application
, MUIM_Application_Execute
);
67 MUI_DisposeObject(application
);
72 return 0; /* make compiler happy */