int fgSolarSystemInit(fgTIME t)
{
- fgOPTIONS *o;
char path[256], gzpath[256];
int i, ret_val;
fgPrintf( FG_ASTRO, FG_INFO, "Initializing solar system\n");
/* build the full path name to the orbital elements database file */
- o = ¤t_options;
- path[0] = '\0';
- strcat(path, o->fg_root);
+ current_options.get_fg_root(path);
strcat(path, "/Scenery/");
strcat(path, "Planets");
/* $Log$
-/* Revision 1.6 1998/05/29 20:35:41 curt
-/* Added zlib support for reading in compressed data files.
+/* Revision 1.7 1998/07/13 21:00:09 curt
+/* Wrote access functions for current fgOPTIONS.
/*
+ * Revision 1.6 1998/05/29 20:35:41 curt
+ * Added zlib support for reading in compressed data files.
+ *
* Revision 1.5 1998/05/13 18:25:34 curt
* Root path info moved to fgOPTIONS.
*
/* Initialize the Star Management Subsystem */
int fgStarsInit( void ) {
fgFile fd;
- fgOPTIONS *o;
/* struct CelestialCoord pltPos; */
char path[256], gzpath[256];
char line[256], name[256];
fgPrintf( FG_ASTRO, FG_INFO, "Initializing stars\n");
- o = ¤t_options;
-
/* build the full path name to the stars data base file */
- path[0] = '\0';
- strcat(path, o->fg_root);
+ current_options.get_fg_root(path);
strcat(path, "/Scenery/");
strcat(path, "Stars");
/* $Log$
-/* Revision 1.7 1998/05/29 20:35:42 curt
-/* Added zlib support for reading in compressed data files.
+/* Revision 1.8 1998/07/13 21:00:10 curt
+/* Wrote access functions for current fgOPTIONS.
/*
+ * Revision 1.7 1998/05/29 20:35:42 curt
+ * Added zlib support for reading in compressed data files.
+ *
* Revision 1.6 1998/05/13 18:25:35 curt
* Root path info moved to fgOPTIONS.
*