From: <pa...@us...> - 2003-10-13 14:26:58
|
Update of /cvsroot/fuse-emulator/fuse In directory sc8-pr-cvs1:/tmp/cvs-serv21561 Modified Files: fuse.c Log Message: Check libspectrum's version at startup. Index: fuse.c =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/fuse.c,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -d -r1.91 -r1.92 *** fuse.c 10 Oct 2003 16:36:55 -0000 1.91 --- fuse.c 13 Oct 2003 14:26:52 -0000 1.92 *************** *** 85,88 **** --- 85,91 ---- libspectrum_creator *fuse_creator; + /* The earliest version of libspectrum we need */ + static const char *LIBSPECTRUM_MIN_VERSION = "0.2.0.1"; + /* The various types of file we may want to run on startup */ typedef struct start_files_t { *************** *** 180,184 **** if( display_init(&argc,&argv) ) return 1; ! if( libspectrum_init() ) return 1; #ifdef HAVE_GETEUID --- 183,194 ---- if( display_init(&argc,&argv) ) return 1; ! if( libspectrum_check_version( LIBSPECTRUM_MIN_VERSION ) ) { ! if( libspectrum_init() ) return 1; ! } else { ! ui_error( UI_ERROR_ERROR, ! "libspectrum version %s found, but %s required", ! libspectrum_version(), LIBSPECTRUM_MIN_VERSION ); ! return 1; ! } #ifdef HAVE_GETEUID |