aboutsummaryrefslogtreecommitdiffstats
path: root/menu/main.c
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-03 05:42:25 +0000
committerhpa <hpa>2004-02-03 05:42:25 +0000
commitdfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1 (patch)
treed0021ca8fe28a76d3e680033997127426953151e /menu/main.c
parent5e4b11cb257f5137062690473ec3fe79a928141b (diff)
downloadsyslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.tar.gz
syslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.tar.xz
syslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.zip
Make it all work better... remove use of DOS routines while expecting
attributes to be unchanged; create a wrapper routine for start.
Diffstat (limited to 'menu/main.c')
-rw-r--r--menu/main.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/menu/main.c b/menu/main.c
new file mode 100644
index 00000000..63765c0c
--- /dev/null
+++ b/menu/main.c
@@ -0,0 +1,37 @@
+/* -*- c -*- ------------------------------------------------------------- *
+ *
+ * Copyright 2004 Murali Krishnan Ganapathy - All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Bostom MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+#ifndef NULL
+#define NULL ((void *) 0)
+#endif
+
+#include "menu.h"
+#include "biosio.h"
+#include "string.h"
+#include "syslinux.h"
+
+int syslinux;
+
+int main(void)
+{
+ int rv;
+ int origpage;
+ char r,c;
+
+ syslinux = issyslinux(); /* Find if syslinux is running */
+ if (syslinux) gototxtmode(); /* (else assume we are running in DOS) */
+
+ rv = menumain(); /* Run the actual menu system */
+
+ return rv;
+}
+