summaryrefslogtreecommitdiff
path: root/app/bin/dcustmgm.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/dcustmgm.c')
-rw-r--r--app/bin/dcustmgm.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/app/bin/dcustmgm.c b/app/bin/dcustmgm.c
index 86f86b1..ce6bdeb 100644
--- a/app/bin/dcustmgm.c
+++ b/app/bin/dcustmgm.c
@@ -1,5 +1,5 @@
-/*
- * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/dcustmgm.c,v 1.4 2009-07-30 16:58:42 m_fischer Exp $
+/** \file dcustmgm.c
+ * Custom List Management
*/
/* XTrkCad - Model Railroad CAD
@@ -20,22 +20,27 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "track.h"
+#include <assert.h>
#include <errno.h>
-#include "i18n.h"
+#include <string.h>
#ifdef WINDOWS
#include <io.h>
#define F_OK (0)
#define W_OK (2)
#define access _access
+#else
+#include <unistd.h>
#endif
-/*****************************************************************************
- *
- * Custom List Management
- *
- */
+#include "custom.h"
+#include "fileio.h"
+#include "i18n.h"
+#include "messages.h"
+#include "param.h"
+#include "paths.h"
+#include "track.h"
+#include "wlib.h"
static void CustomEdit( void * action );
static void CustomDelete( void * action );
@@ -241,7 +246,7 @@ static void CustomExport( void * junk )
if ( customMgmExport_fs == NULL )
customMgmExport_fs = wFilSelCreate( mainW, FS_UPDATE, 0, _("Move To XTP"),
_("Parameter File|*.xtp"), CustomDoExport, NULL );
- wFilSelect( customMgmExport_fs, curDirName );
+ wFilSelect( customMgmExport_fs, GetCurrentPath(CUSTOMPATHKEY));
}