tAll modules should now be dlclose'd on exit; -h option now lists all available plugin modules. - vaccinewars - be a doctor and try to vaccinate the world (HTM) git clone git://src.adamsgaard.dk/vaccinewars (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 1d149880ac4a1f88998f022124e982eb282b409b (DIR) parent d05d338e0687c24ef57023e854e9f2ecfe8a2a4f (HTM) Author: Ben Webb <ben@salilab.org> Date: Tue, 14 May 2002 12:58:27 +0000 All modules should now be dlclose'd on exit; -h option now lists all available plugin modules. Diffstat: M src/dopewars.c | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) --- (DIR) diff --git a/src/dopewars.c b/src/dopewars.c t@@ -2513,7 +2513,28 @@ void SetupParameters(void) } } -void HandleHelpTexts() +static void PluginHelp(void) +{ + GSList *listpt = NULL; + const gchar *plugname; +#ifdef HAVE_GETOPT_LONG + g_print(_(" -u, --plugin=FILE use sound plugin \"FILE\"\n" + " ")); +#else + g_print(_(" -u file use sound plugin \"file\"\n" + " ")); +#endif + g_print("(\"none\""); + do { + plugname = GetPluginName(&listpt); + if (plugname) { + g_print(", \"%s\"", plugname); + } + } while(plugname); + g_print(_(" available)\n")); +} + +void HandleHelpTexts(void) { g_print(_("dopewars version %s\n"), VERSION); if (!WantHelp) t@@ -2550,11 +2571,12 @@ Drug dealing game based on \"Drug Wars\" by John E. Dell\n\ client (GTK+ or Win32)\n\ -t, --text-client force the use of a text-mode client (curses) (by\n\ default, a windowed client is used when possible)\n\ - -C, --convert=FILE convert an \"old format\" score file to the new format\n\ - -h, --help display this help information\n\ + -C, --convert=FILE convert an \"old format\" score file to the new format\n"), DATADIR); + PluginHelp(); + g_print(_(" -h, --help display this help information\n\ -v, --version output version information and exit\n\n\ dopewars is Copyright (C) Ben Webb 1998-2002, and released under the GNU GPL\n\ -Report bugs to the author at ben@bellatrix.pcl.ox.ac.uk\n"), DATADIR); +Report bugs to the author at ben@bellatrix.pcl.ox.ac.uk\n")); #else /* Usage information, printed when the user runs "dopewars -h" * (short options only version) */