-
-// y += get_text_height(MEDIUMFONT) * 3;
- set_font(LARGEFONT);
- draw_text(x, y, "Contributors:");
- y += get_text_height(LARGEFONT);
-
- credits.append(new BC_ListBoxItem("Richard Baverstock"));
- credits.append(new BC_ListBoxItem("Karl Bielefeldt"));
- credits.append(new BC_ListBoxItem("Kevin Brosius"));
- credits.append(new BC_ListBoxItem("Jean-Luc Coulon"));
- credits.append(new BC_ListBoxItem("Jean-Michel Poure"));
- credits.append(new BC_ListBoxItem("Jerome Cornet"));
- credits.append(new BC_ListBoxItem("Pierre Marc Dumuid"));
- credits.append(new BC_ListBoxItem("Alex Ferrer"));
- credits.append(new BC_ListBoxItem("Gustavo Iñiguez"));
- credits.append(new BC_ListBoxItem("Tefan de Konink"));
- credits.append(new BC_ListBoxItem("Nathan Kurz"));
- credits.append(new BC_ListBoxItem("Greg Mekkes"));
- credits.append(new BC_ListBoxItem("Eric Seigne"));
- credits.append(new BC_ListBoxItem("Johannes Sixt"));
- credits.append(new BC_ListBoxItem("Joe Stewart"));
- credits.append(new BC_ListBoxItem("Dan Streetman"));
- credits.append(new BC_ListBoxItem("Johannes Sixt"));
- credits.append(new BC_ListBoxItem("Mark Taraba"));
- credits.append(new BC_ListBoxItem("Andraz Tori"));
- credits.append(new BC_ListBoxItem("Jonas Wulff"));
-#ifdef X_HAVE_UTF8_STRING
- credits.append(new BC_ListBoxItem("Einar Rünkaru"));
-#else
- credits.append(new BC_ListBoxItem("Einar R\374nkaru"));
-#endif
- credits.append(new BC_ListBoxItem("Monty Montgomery"));
- credits.append(new BC_ListBoxItem("Paolo Rampino"));
- credits.append(new BC_ListBoxItem("Petter Reinholdtsen"));
- credits.append(new BC_ListBoxItem("Nicola Ferralis"));
- credits.append(new BC_ListBoxItem("Michael Collins"));
-
- BC_ListBox *listbox;
- add_subwindow(listbox = new BC_ListBox(x,
- y,
- 200,
- 300,
- LISTBOX_TEXT,
- &credits,
- 0,
- 0,
- 1));
- y += listbox->get_h() + get_text_height(LARGEFONT) + 10;
+ char exe_path[BCTEXTLEN], msg_path[BCTEXTLEN];
+ get_exe_path(exe_path);
+ snprintf(msg_path, sizeof(msg_path), "%s/msg.txt", exe_path);
+ FILE *fp = fopen(msg_path, "r");
+ if( fp ) {
+ set_font(LARGEFONT);
+ draw_text(x, y, _("About:"));
+ y += get_text_height(LARGEFONT);
+ char msg[BCTEXTLEN];
+ while( fgets(msg, sizeof(msg), fp) )
+ about.append(new BC_ListBoxItem(msg));
+
+ BC_ListBox *listbox;
+ add_subwindow(listbox = new BC_ListBox(x, y, 300, 300,
+ LISTBOX_TEXT, &about, 0, 0, 1));
+ y += listbox->get_h() + get_text_height(LARGEFONT) + 10;
+ }
+ else
+ y += 300 + get_text_height(LARGEFONT) + 10;