1 // Emacs style mode select -*- C++ -*- 2 //-------------------------------------------------------------------------- 3 // 4 // $Id: swconf.h,v 1.1.1.1 2003/02/14 19:03:30 fraggle Exp $ 5 // 6 // Copyright(C) 1984-2000 David L. Clark 7 // Copyright(C) 2001-2003 Simon Howard 8 // 9 // This program is free software; you can redistribute it and/or modify it 10 // under the terms of the GNU General Public License as published by the 11 // Free Software Foundation; either version 2 of the License, or (at your 12 // option) any later version. This program is distributed in the hope that 13 // it will be useful, but WITHOUT ANY WARRANTY; without even the implied 14 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 15 // the GNU General Public License for more details. You should have 16 // received a copy of the GNU General Public License along with this 17 // program; if not, write to the Free Software Foundation, Inc., 59 Temple 18 // Place - Suite 330, Boston, MA 02111-1307, USA. 19 // 20 //-------------------------------------------------------------------------- 21 // 22 // Configuration code 23 // 24 // Save game settings to a configuration file 25 // 26 //------------------------------------------------------------------------- 27 28 #ifndef __SWCONF_H__ 29 #define __SWCONF_H__ 30 31 typedef struct 32 { 33 char *name; 34 enum { 35 CONF_BOOL, 36 CONF_INT 37 } type; 38 union { 39 void *v; 40 BOOL *b; 41 int *i; 42 } value; 43 char *description; 44 } confoption_t; 45 46 extern confoption_t confoptions[]; 47 extern int num_confoptions; 48 49 extern void swloadconf(); 50 extern void swsaveconf(); 51 extern void setconfig(); // config menu 52 53 #endif 54 55 //------------------------------------------------------------------------- 56 // 57 // $Log: swconf.h,v $ 58 // Revision 1.1.1.1 2003/02/14 19:03:30 fraggle 59 // Initial Sourceforge CVS import 60 // 61 // 62 // sdh 14/2/2003: change license header to GPL 63 // sdh 10/11/2001: make confoptions available globally for gtk code 64 // 65 //------------------------------------------------------------------------- 66