add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / workbench / prefs / serial / main.c
blobf3e1620a1511bee4e6d1e3e9ac42fd5eb858c7fc
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*********************************************************************************************/
11 #define MUIMASTER_YES_INLINE_STDARG
13 #include <proto/alib.h>
14 #include <proto/intuition.h>
15 #include <proto/muimaster.h>
17 #include <zune/systemprefswindow.h>
19 #include "locale.h"
20 #include "sereditor.h"
21 #include "args.h"
22 #include "prefs.h"
24 /* #define DEBUG 1 */
25 #include <aros/debug.h>
27 #define VERSION "$VER: Serial 2.1 (05.01.2010) AROS Dev Team"
28 /*********************************************************************************************/
30 int main(int argc, char **argv)
32 Object *application;
33 Object *window;
35 D(bug("[serial prefs] InitLocale\n"));
36 Locale_Initialize();
38 D(bug("[serial prefs] started\n"));
40 /* init */
41 if (ReadArguments(argc, argv))
43 D(bug("[serial prefs] initialized\n"));
44 if (ARG(USE) || ARG(SAVE))
46 Prefs_HandleArgs((STRPTR)ARG(FROM), ARG(USE), ARG(SAVE));
48 else
50 application = (Object *)ApplicationObject,
51 MUIA_Application_Title, __(MSG_WINTITLE),
52 MUIA_Application_Version, (IPTR) VERSION,
53 MUIA_Application_Description, __(MSG_WINTITLE),
54 MUIA_Application_SingleTask, TRUE,
55 MUIA_Application_Base, (IPTR) "SERIALPREF",
56 SubWindow, (IPTR)(window = (Object *)SystemPrefsWindowObject,
57 MUIA_Window_ID, ID_SERL,
58 WindowContents, (IPTR) SerEditorObject,
59 End,
60 End),
61 End;
63 if (application != NULL)
65 SET(window, MUIA_Window_Open, TRUE);
66 DoMethod(application, MUIM_Application_Execute);
68 MUI_DisposeObject(application);
71 FreeArguments();
74 Locale_Deinitialize();
75 return 0;
78 /*********************************************************************************************/