[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Graveman-cvs] Changes to graveman/current/src/main.c
From: |
sylvain cresto |
Subject: |
[Graveman-cvs] Changes to graveman/current/src/main.c |
Date: |
Mon, 21 Mar 2005 19:27:18 -0500 |
Index: graveman/current/src/main.c
diff -u graveman/current/src/main.c:1.15 graveman/current/src/main.c:1.16
--- graveman/current/src/main.c:1.15 Sun Feb 27 19:07:44 2005
+++ graveman/current/src/main.c Tue Mar 22 00:27:13 2005
@@ -26,70 +26,6 @@
GladeXML *Gxml = NULL;
-gboolean graveman_init(gint Aargc, gchar *Aargv[]) {
- gint i;
- gchar *ptr;
- for (i = 1; i <= Aargc; i++) {
- ptr = Aargv[i-1];
- while (*ptr=='-') ptr++;
- if (*ptr == 'v') {
- g_printf("%s\n", VERSION);
- return FALSE;
- } else if (*ptr == 'V') {
- g_printf("%s: %s\n", _("Version"), VERSION);
- g_printf("%s: %s\n", _("Compiled with ogg vorbis support"),
-#ifdef ENABLE_OGG
- _("yes")
-#else
- _("no")
-#endif
- );
- g_printf("%s: %s\n", _("Compiled with mp3 support"),
-#ifdef ENABLE_MP3
- _("yes")
-#else
- _("no")
-#endif
- );
- g_printf("%s: %s\n", _("Compiled with linux-ide devices support"),
-#ifdef LINUX_IDE
- _("yes")
-#else
- _("no")
-#endif
- );
-
- g_printf("%s: %s\n", _("Compiled with linux-scsi devices support"),
-#ifdef LINUX_SCSI
- _("yes")
-#else
- _("no")
-#endif
- );
-
- g_printf("%s %s\n", _("Compiled"),
-#ifdef DEBUG
- _("with debug support")
-#else
- _("without debug support")
-#endif
- );
- return FALSE;
- } else if (*ptr == 'h') {
- g_printf("%s %s\n", PACKAGE, VERSION);
- g_printf(_("By Sylvain Cresto <address@hidden>\n\n"));
- g_printf(" %s %s %s\n"
- "\t-v\t%s\n"
- "\t-V\t%s\n\n",
- _("Usage:"), Aargv[0], _("[options]"), _("show version
number."),
- _("show compilation informations."));
- return FALSE;
- }
-
- }
-
- return TRUE;
-}
gboolean graveman_glade_init(gchar *Afilename) {
if (!Gxml) {
@@ -134,6 +70,13 @@
welcome_to_graveman();
} else {
if (read_config(&Lerror)==FALSE) return EXIT_FAILURE;
+ if (conf_get_boolean("scan_drives") || param_get_boolean("scan_drives"))
+ {
+ Tgrave *Lg = sc_grave_newempty();
+ /* scan for new drives on startup */
+ manage_config(Lg, SEARCH_LECTEUR, &Lerror);
+ sc_grave_destroy(Lg);
+ }
}
load_all_images();
- [Graveman-cvs] Changes to graveman/current/src/main.c,
sylvain cresto <=