added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / prefs / wanderer / main.c
blob82b99a8a0e2ee9b19aaff24db4f6cf818ae0d353
1 /*
2 Copyright © 2004-2007, The AROS Development Team. All rights reserved.
3 This file is part of the Wanderer Preferences program, which is distributed
4 under the terms of version 2 of the GNU General Public License.
6 $Id$
7 */
8 #define DEBUG 0
9 #include <aros/debug.h>
11 #define MUIMASTER_YES_INLINE_STDARG
13 #include <proto/intuition.h>
14 #include <proto/muimaster.h>
15 #include <libraries/mui.h>
16 #include <dos/dos.h>
18 #include <zune/systemprefswindow.h>
19 #include "locale.h"
20 #include "wpeditor.h"
22 #define VERSIONSTR "$VER: Wanderer Prefs 1.1 (18.02.2006) ©1995-2007 The AROS Development Team"
24 int main(void)
26 Object *application, *window;
27 BPTR OldDir, NewDir;
28 int rc = RETURN_OK;
29 D(bug("[WPEditor.exe] Starting...\n"));
30 Locale_Initialize();
31 NewDir = Lock("RAM:", SHARED_LOCK);
32 if (NewDir)
33 OldDir = CurrentDir(NewDir);
34 application = ApplicationObject,
35 MUIA_Application_Title, (IPTR) "Wanderer Prefs",
36 MUIA_Application_Version, (IPTR) VERSIONSTR,
37 MUIA_Application_Description, __(MSG_DESCRIPTION),
38 MUIA_Application_Copyright, (IPTR)"Copyright © 1995-2006, The AROS Development Team",
39 MUIA_Application_Author, (IPTR)"The AROS Development Team",
40 MUIA_Application_Base, (IPTR)"WANDERERPREFS",
41 MUIA_Application_SingleTask, TRUE,
42 SubWindow, (IPTR)(
43 window = SystemPrefsWindowObject,
44 MUIA_Window_ID, MAKE_ID('W','W','I','N'),
45 MUIA_Window_Title, __(MSG_NAME),
46 WindowContents, (IPTR)WPEditorObject,
47 End,
48 End),
49 End;
51 if (application)
53 SET(window, MUIA_Window_Open, TRUE);
54 DoMethod(application, MUIM_Application_Execute);
55 SET(window, MUIA_Window_Open, FALSE);
56 MUI_DisposeObject(application);
57 } else {
58 rc = RETURN_FAIL;
59 D(bug("[WPEditor.exe] Can't create application!\n"));
61 if (NewDir) {
62 CurrentDir(OldDir);
63 UnLock(NewDir);
65 Locale_Deinitialize();
66 D(bug("[WPEditor.exe] Quitting...\n"));
67 return rc;