#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include STL_STRING
#include STL_FUNCTIONAL
runways.erase( runways.begin(), runways.end() );
- fg_gzifstream in( file );
+ sg_gzifstream in( file );
if ( !in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << file );
exit(-1);
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include STL_STRING
#include STL_FUNCTIONAL
airports.erase( airports.begin(), airports.end() );
- fg_gzifstream in( file );
+ sg_gzifstream in( file );
if ( !in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << file );
exit(-1);
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Airports/simple.hxx>
#include <GUI/gui.h>
const SGPropertyNode * node = instrument_group->getChild(i);
- FGPath path( globals->get_fg_root() );
+ SGPath path( globals->get_fg_root() );
path.append(node->getStringValue("path"));
SG_LOG(SG_INPUT, SG_INFO, "Reading Instrument "
string hud_path =
fgGetString("/sim/hud/path", "Huds/Default/default.xml");
- FGPath path(globals->get_fg_root());
+ SGPath path(globals->get_fg_root());
path.append(hud_path);
ifstream input(path.c_str());
SG_LOG( SG_COCKPIT, SG_INFO, "Initializing current aircraft HUD" );
- FGPath path(globals->get_fg_root());
+ SGPath path(globals->get_fg_root());
path.append("Huds/Minimal/default.xml");
#include <plib/fnt.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
ssgTexture * texture = _textureMap[relativePath];
if (texture == 0) {
cerr << "Texture " << relativePath << " does not yet exist" << endl;
- FGPath tpath(globals->get_fg_root());
+ SGPath tpath(globals->get_fg_root());
tpath.append(relativePath);
texture = new ssgTexture((char *)tpath.c_str(), false, false);
_textureMap[relativePath] = texture;
#include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/props.hxx>
for (int i = 0; i < nInstruments; i++) {
const SGPropertyNode * node = instrument_group->getChild(i);
- FGPath path( globals->get_fg_root() );
+ SGPath path( globals->get_fg_root() );
path.append(node->getStringValue("path"));
SG_LOG(SG_INPUT, SG_INFO, "Reading instrument "
fgReadPanel (const string &relative_path)
{
FGPanel * panel = 0;
- FGPath path(globals->get_fg_root());
+ SGPath path(globals->get_fg_root());
path.append(relative_path);
ifstream input(path.c_str());
if (!input.good()) {
search();
update();
- FGPath path( globals->get_fg_root() );
- FGPath term = path;
+ SGPath path( globals->get_fg_root() );
+ SGPath term = path;
term.append( "Navaids/range.term" );
- FGPath low = path;
+ SGPath low = path;
low.append( "Navaids/range.low" );
- FGPath high = path;
+ SGPath high = path;
high.append( "Navaids/range.high" );
term_tbl = new SGInterpTable( term.str() );
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Aircraft/aircraft.hxx>
#include <Controls/controls.hxx>
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Scenery/scenery.hxx>
fgic=new FGInitialCondition(fdmex);
needTrim=true;
- FGPath aircraft_path( globals->get_fg_root() );
+ SGPath aircraft_path( globals->get_fg_root() );
aircraft_path.append( "Aircraft" );
- FGPath engine_path( globals->get_fg_root() );
+ SGPath engine_path( globals->get_fg_root() );
engine_path.append( "Engine" );
set_delta_t( dt );
fdmex->GetState()->Setdt( dt );
SG_LOG( SG_FLIGHT, SG_INFO, "Starting and initializing JSBsim" );
#if 0
- FGPath aircraft_path( globals->get_fg_root() );
+ SGPath aircraft_path( globals->get_fg_root() );
aircraft_path.append( "Aircraft" );
- FGPath engine_path( globals->get_fg_root() );
+ SGPath engine_path( globals->get_fg_root() );
engine_path.append( "Engine" );
fdmex->GetState()->Setdt( get_delta_t() );
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Include/general.hxx>
void AptDialog_OK (puObject *)
{
- FGPath path( globals->get_fg_root() );
+ SGPath path( globals->get_fg_root() );
path.append( "Airports" );
path.append( "simple.mk4" );
FGAirports airports( path.c_str() );
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/screen/screen-dump.hxx>
#include <Include/general.hxx>
gui_msg_RESET = msg_RESET; // "RESET"
// Next check home directory
- FGPath fntpath;
+ SGPath fntpath;
char* envp = ::getenv( "FG_FONTS" );
if ( envp != NULL ) {
fntpath.set( envp );
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/screen/screen-dump.hxx>
#include <Include/general.hxx>
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Include/general.hxx>
#include <simgear/xgl/xgl.h>
#include <simgear/math/point3d.hxx>
#include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/timing/sg_time.hxx>
#include <Aircraft/aircraft.hxx>
if ( root == "" ) {
envp = ::getenv( "HOME" );
if ( envp != NULL ) {
- FGPath config( envp );
+ SGPath config( envp );
config.append( ".fgfsrc" );
char name[256];
gethostname( name, 256 );
if ( root == "" ) {
envp = ::getenv( "HOME" );
if ( envp != NULL ) {
- FGPath config( envp );
+ SGPath config( envp );
config.append( ".fgfsrc" );
root = fgScanForRoot(config.str());
}
fgSetDefaults();
// Read global preferences from $FG_ROOT/preferences.xml
- FGPath props_path(globals->get_fg_root());
+ SGPath props_path(globals->get_fg_root());
props_path.append("preferences.xml");
SG_LOG(SG_INPUT, SG_INFO, "Reading global preferences");
if (!readProperties(props_path.str(), globals->get_props())) {
// from least precidence to greatest precidence
// Check for $fg_root/system.fgfsrc
- FGPath config( globals->get_fg_root() );
+ SGPath config( globals->get_fg_root() );
config.append( "system.fgfsrc" );
fgParseOptions(config.str());
// find basic airport location info from airport database
bool fgFindAirportID( const string& id, FGAirport *a ) {
if ( id.length() ) {
- FGPath path( globals->get_fg_root() );
+ SGPath path( globals->get_fg_root() );
path.append( "Airports" );
path.append( "simple.mk4" );
FGAirports airports( path.c_str() );
if ( id.length() ) {
// set initial position from runway and heading
- FGPath path( globals->get_fg_root() );
+ SGPath path( globals->get_fg_root() );
path.append( "Airports" );
path.append( "runways.mk4" );
FGRunways runways( path.c_str() );
"Attempting to set starting position from runway code "
<< id << " heading " << tgt_hdg );
- // FGPath inpath( globals->get_fg_root() );
+ // SGPath inpath( globals->get_fg_root() );
// inpath.append( "Airports" );
// inpath.append( "apt_simple" );
// airports.load( inpath.c_str() );
- // FGPath outpath( globals->get_fg_root() );
+ // SGPath outpath( globals->get_fg_root() );
// outpath.append( "Airports" );
// outpath.append( "simple.gdbm" );
// airports.dump_gdbm( outpath.c_str() );
SG_LOG( SG_GENERAL, SG_INFO, "========== ==========");
// Initialize the material property lib
- FGPath mpath( globals->get_fg_root() );
+ SGPath mpath( globals->get_fg_root() );
mpath.append( "materials" );
if ( material_lib.load( mpath.str() ) ) {
} else {
SG_LOG(SG_GENERAL, SG_INFO, " VOR/NDB");
current_navlist = new FGNavList;
- FGPath p_nav( globals->get_fg_root() );
+ SGPath p_nav( globals->get_fg_root() );
p_nav.append( "Navaids/default.nav" );
current_navlist->init( p_nav );
current_beacons = new FGMarkerBeacons;
current_beacons->init();
current_ilslist = new FGILSList;
- FGPath p_ils( globals->get_fg_root() );
+ SGPath p_ils( globals->get_fg_root() );
p_ils.append( "Navaids/default.ils" );
current_ilslist->init( p_ils );
SG_LOG(SG_GENERAL, SG_INFO, " Fixes");
current_fixlist = new FGFixList;
- FGPath p_fix( globals->get_fg_root() );
+ SGPath p_fix( globals->get_fg_root() );
p_fix.append( "Navaids/default.fix" );
current_fixlist->init( p_fix );
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Aircraft/aircraft.hxx>
#include <Autopilot/auto_gui.hxx>
{
SGBucket p( f->get_Longitude() * SGD_RADIANS_TO_DEGREES,
f->get_Latitude() * SGD_RADIANS_TO_DEGREES );
- FGPath tile_path( globals->get_fg_root() );
+ SGPath tile_path( globals->get_fg_root() );
tile_path.append( "Scenery" );
tile_path.append( p.gen_base_path() );
tile_path.append( p.gen_index_str() );
return;
}
case GLUT_KEY_F4: {
- FGPath props_path(globals->get_fg_root());
+ SGPath props_path(globals->get_fg_root());
props_path.append("preferences.xml");
SG_LOG(SG_INPUT, SG_INFO, "Rereading global preferences");
if (!readProperties(props_path.str(), globals->get_props())) {
#include <simgear/debug/logstream.hxx>
#include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_random.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/sky/sky.hxx>
#include <simgear/timing/sg_time.hxx>
#include <simgear/timing/lowleveltime.h>
// begin - added Venky
// $$$ begin - added VS Renganathan
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <FDM/flight.hxx>
#include <FDM/ADA.hxx>
void fgLoadDCS (void);
#if !defined(WIN32)
if ( fgGetBool("/sim/startup/intro-music") ) {
string lockfile = "/tmp/mpg123.running";
- FGPath mp3file( globals->get_fg_root() );
+ SGPath mp3file( globals->get_fg_root() );
mp3file.append( "Sounds/intro.mp3" );
string command = "(touch " + lockfile + "; mpg123 "
}
// Initialize time
- FGPath zone( globals->get_fg_root() );
+ SGPath zone( globals->get_fg_root() );
zone.append( "Timezone" );
SGTime *t = new SGTime( fgGetDouble("/position/longitude") * SGD_DEGREES_TO_RADIANS,
fgGetDouble("/position/latitude") * SGD_DEGREES_TO_RADIANS,
exit(-1);
}
- FGPath modelpath( globals->get_fg_root() );
+ SGPath modelpath( globals->get_fg_root() );
ssgModelPath( (char *)modelpath.c_str() );
// Scene graph root
lighting->setName( "Lighting" );
// Initialize the sky
- FGPath ephem_data_path( globals->get_fg_root() );
+ SGPath ephem_data_path( globals->get_fg_root() );
ephem_data_path.append( "Astro" );
SGEphemeris *ephem = new SGEphemeris( ephem_data_path.c_str() );
ephem->update( globals->get_time_params()->getMjd(),
0.0 );
globals->set_ephem( ephem );
- FGPath sky_tex_path( globals->get_fg_root() );
+ SGPath sky_tex_path( globals->get_fg_root() );
sky_tex_path.append( "Textures" );
sky_tex_path.append( "Sky" );
thesky = new SGSky;
+ acmodel_path;
int pos = full_model.rfind("/");
- FGPath texturepath( full_model.substr(0, pos) );
+ SGPath texturepath( full_model.substr(0, pos) );
cout << "Texture path = " << texturepath.str() << endl;
ssgTexturePath( (char *)texturepath.c_str() );
ship_pos[k]=NULL;
}
- FGPath tile_path( globals->get_fg_root());
+ SGPath tile_path( globals->get_fg_root());
tile_path.append( "Scenery" );
tile_path.append( "Objects.txt" );
- fg_gzifstream in( tile_path.str() );
+ sg_gzifstream in( tile_path.str() );
if ( ! in.is_open() ) {
SG_LOG( SG_TERRAIN, SG_ALERT, "Cannot open file: " << tile_path.str() );
}
- FGPath modelpath( globals->get_fg_root() );
+ SGPath modelpath( globals->get_fg_root() );
modelpath.append( "Models" );
modelpath.append( "Geometry" );
- FGPath texturepath( globals->get_fg_root() );
+ SGPath texturepath( globals->get_fg_root() );
texturepath.append( "Models" );
texturepath.append( "Textures" );
#include STL_STRING
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
// #include <Include/general.hxx>
// #include <Airports/simple.hxx>
static bool
parse_flightplan(const string& arg)
{
- fg_gzifstream infile(arg.c_str());
+ sg_gzifstream infile(arg.c_str());
if ( !infile.is_open() ) {
return false;
}
string
fgScanForRoot (const string& path)
{
- fg_gzifstream in( path );
+ sg_gzifstream in( path );
if ( !in.is_open() )
return "";
// Parse config file options
void
fgParseOptions (const string& path) {
- fg_gzifstream in( path );
+ sg_gzifstream in( path );
if ( !in.is_open() )
return;
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Objects/texload.h>
char num_str[256];
sprintf(num_str, "%d", num);
- FGPath tpath( globals->get_fg_root() );
+ SGPath tpath( globals->get_fg_root() );
tpath.append( "Textures/Splash" );
tpath.concat( num_str );
tpath.concat( ".rgb" );
read_rgb_texture(tpath.c_str(), &width, &height)) == NULL )
{
// Try compressed
- FGPath fg_tpath = tpath;
+ SGPath fg_tpath = tpath;
fg_tpath.concat( ".gz" );
if ( (splash_texbuf =
read_rgb_texture(fg_tpath.c_str(), &width, &height)) == NULL )
#include <simgear/compiler.h>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include "fixlist.hxx"
// load the navaids and build the map
-bool FGFixList::init( FGPath path ) {
+bool FGFixList::init( SGPath path ) {
FGFix fix;
fixlist.erase( fixlist.begin(), fixlist.end() );
- fg_gzifstream in( path.str() );
+ sg_gzifstream in( path.str() );
if ( !in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << path.str() );
exit(-1);
#include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <map>
#include <vector>
~FGFixList();
// load the navaids and build the map
- bool init( FGPath path );
+ bool init( SGPath path );
// query the database for the specified frequency, lon and lat are
// in degrees, elev is in meters
#include <simgear/compiler.h>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include "mkrbeacons.hxx"
// load the navaids and build the map
-bool FGILSList::init( FGPath path ) {
+bool FGILSList::init( SGPath path ) {
FGILS ils;
ilslist.erase( ilslist.begin(), ilslist.end() );
- fg_gzifstream in( path.str() );
+ sg_gzifstream in( path.str() );
if ( !in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << path.str() );
exit(-1);
#include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <map>
#include <vector>
~FGILSList();
// load the navaids and build the map
- bool init( FGPath path );
+ bool init( SGPath path );
// query the database for the specified frequency, lon and lat are
// in degrees, elev is in meters
#include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <map>
#include <vector>
#include <simgear/compiler.h>
#include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <simgear/magvar/magvar.hxx>
#include <simgear/timing/sg_time.hxx>
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include "navlist.hxx"
// load the navaids and build the map
-bool FGNavList::init( FGPath path ) {
+bool FGNavList::init( SGPath path ) {
FGNav n;
navaids.erase( navaids.begin(), navaids.end() );
- fg_gzifstream in( path.str() );
+ sg_gzifstream in( path.str() );
if ( !in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << path.str() );
exit(-1);
#include <simgear/compiler.h>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <map>
#include <vector>
~FGNavList();
// load the navaids and build the map
- bool init( FGPath path );
+ bool init( SGPath path );
// query the database for the specified frequency, lon and lat are
// in degrees, elev is in meters
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include "fixlist.hxx"
#include "ilslist.hxx"
double heading, dist;
current_navlist = new FGNavList;
- FGPath p_nav( "/home/curt/FlightGear/Navaids/default.nav" );
+ SGPath p_nav( "/home/curt/FlightGear/Navaids/default.nav" );
current_navlist->init( p_nav );
FGNav n;
if ( current_navlist->query( -93.2, 45.14, 3000, 117.30, &n) ) {
}
current_ilslist = new FGILSList;
- FGPath p_ils( "/home/curt/FlightGear/Navaids/default.ils" );
+ SGPath p_ils( "/home/curt/FlightGear/Navaids/default.ils" );
current_ilslist->init( p_ils );
FGILS i;
if ( current_ilslist->query( -93.1, 45.24, 3000, 110.30, &i) ) {
}
current_fixlist = new FGFixList;
- FGPath p_fix( "/home/curt/FlightGear/Navaids/default.fix" );
+ SGPath p_fix( "/home/curt/FlightGear/Navaids/default.fix" );
current_fixlist->init( p_fix );
FGFix fix;
if ( current_fixlist->query( "SHELL", -82, 41, 3000,
#include STL_STRING
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sg_path.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <Include/general.hxx>
#include <Main/globals.hxx>
static bool local_file_exists( const string& path ) {
- fg_gzifstream in( path );
+ sg_gzifstream in( path );
if ( ! in.is_open() ) {
return false;
} else {
bool FGMaterialLib::load( const string& mpath ) {
string material_name;
- fg_gzifstream in( mpath );
+ sg_gzifstream in( mpath );
if ( ! in.is_open() ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << mpath );
exit(-1);
in >> m;
// build the ssgSimpleState
- FGPath tex_path( globals->get_fg_root() );
+ SGPath tex_path( globals->get_fg_root() );
tex_path.append( "Textures.high" );
- FGPath tmp_path = tex_path;
+ SGPath tmp_path = tex_path;
tmp_path.append( m.get_texture_name() );
if ( ! local_file_exists(tmp_path.str())
|| general.get_glMaxTexSize() < 512 ) {
- tex_path = FGPath( globals->get_fg_root() );
+ tex_path = SGPath( globals->get_fg_root() );
tex_path.append( "Textures" );
}
#endif
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sg_path.hxx>
+#include <simgear/misc/sgstream.hxx>
#include "newmat.hxx"
void FGNewMat::build_ssg_state( const string& path,
GLenum shade_model, bool texture_default )
{
- FGPath tex_file( path );
+ SGPath tex_file( path );
tex_file.append( texture_name );
state = new ssgStateSelector(2);
#include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include <simgear/misc/stopwatch.hxx>
#include <simgear/misc/texcoord.hxx>
tile -> setName ( (char *)path.c_str() ) ;
// Attempt to open "path.gz" or "path"
- fg_gzifstream in( path );
+ sg_gzifstream in( path );
if ( ! in.is_open() ) {
SG_LOG( SG_TERRAIN, SG_DEBUG, "Cannot open file: " << path );
SG_LOG( SG_TERRAIN, SG_DEBUG, "default to ocean tile: " << path );
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h>
-#include <simgear/misc/fgstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sgstream.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Main/globals.hxx>
#include <Objects/matlib.hxx>
e->terra_range = new ssgRangeSelector;
e->tile_bucket = b;
- FGPath tile_path;
+ SGPath tile_path;
if ( globals->get_fg_scenery() != "" ) {
tile_path.set( globals->get_fg_scenery() );
} else {
ssgVertexArray *light_pts = new ssgVertexArray( 100 );
// Load the appropriate data file
- FGPath tile_base = tile_path;
+ SGPath tile_base = tile_path;
tile_base.append( b.gen_index_str() );
ssgBranch *new_tile = fgObjLoad( tile_base.str(), e, light_pts, true );
// load custom objects
SG_LOG( SG_TERRAIN, SG_DEBUG, "CUSTOM OBJECTS" );
- FGPath index_path = tile_path;
+ SGPath index_path = tile_path;
index_path.append( b.gen_index_str() );
index_path.concat( ".ind" );
SG_LOG( SG_TERRAIN, SG_DEBUG, "Looking in " << index_path.str() );
- fg_gzifstream in( index_path.str() );
+ sg_gzifstream in( index_path.str() );
if ( in.is_open() ) {
string token, name;
SG_LOG( SG_TERRAIN, SG_DEBUG, "token = " << token
<< " name = " << name );
- FGPath custom_path = tile_path;
+ SGPath custom_path = tile_path;
custom_path.append( name );
ssgBranch *custom_obj =
fgObjLoad( custom_path.str(), e, NULL, false );
#include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Main/globals.hxx>
// constructor
FGSimpleSound::FGSimpleSound( string file ) {
- FGPath slfile( globals->get_fg_root() );
+ SGPath slfile( globals->get_fg_root() );
slfile.append( file );
sample = new slSample ( (char *)slfile.c_str() );
pitch_envelope = new slEnvelope( 1, SL_SAMPLE_ONE_SHOT );
#include <simgear/debug/logstream.hxx>
#include <simgear/math/interpolater.hxx>
#include <simgear/math/polar3d.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Aircraft/aircraft.hxx>
#include <Main/globals.hxx>
"Initializing Lighting interpolation tables." );
// build the path name to the ambient lookup table
- FGPath path( globals->get_fg_root() );
- FGPath ambient = path;
+ SGPath path( globals->get_fg_root() );
+ SGPath ambient = path;
ambient.append( "Lighting/ambient" );
- FGPath diffuse = path;
+ SGPath diffuse = path;
diffuse.append( "Lighting/diffuse" );
- FGPath sky = path;
+ SGPath sky = path;
sky.append( "Lighting/sky" );
// initialize ambient table
# include <config.h>
#endif
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/magvar/magvar.hxx>
#include <FDM/flight.hxx>
// periodic time updater wrapper
void fgUpdateLocalTime() {
- FGPath zone( globals->get_fg_root() );
+ SGPath zone( globals->get_fg_root() );
zone.append( "Timezone" );
globals->get_time_params()->updateLocal( cur_fdm_state->get_Longitude(),
{
unsigned int nr = 0;
- fg_gzifstream in;
+ sg_gzifstream in;
cerr << "Parsing \"" << file << "\" for weather datas:\n";
#include <simgear/compiler.h>
#include <vector>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
#include "FGPhysicalProperties.h"