Norman Vine wrote: > > > Modified Files: > > FGTileLoader.cxx > > Log Message: > > Windows uses ';' instead of ':' as a path separator. > > > > Index: FGTileLoader.cxx > > =================================================================== > > RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Scenery/FGTileLoader.cxx,v > > retrieving revision 1.7 > > retrieving revision 1.8 > > diff -C2 -r1.7 -r1.8 > > *** a/FGTileLoader.cxx 6 Jun 2004 19:15:04 -0000 1.7 > > --- b/FGTileLoader.cxx 6 Jun 2004 19:34:31 -0000 1.8 > > *************** > > *** 99,103 **** > > SGPath tmp; > > tmp.set( globals->get_fg_root() ); > > ! tmp.append( "Scenery/Terrain:" ); > > tmp.append(globals->get_fg_root() ); > > tmp.append( "Scenery/Objects" ); > > --- 99,108 ---- > > SGPath tmp; > > tmp.set( globals->get_fg_root() ); > > ! tmp.append( "Scenery/Terrain" ); > > ! #ifdef _MSC_VER > > ! tmp.append( ";"); > > ! #else > > ! tmp.append( ":"); > > ! #endif > > tmp.append(globals->get_fg_root() ); > > tmp.append( "Scenery/Objects" ); > > > > Doesn't SGPath.apapend just do the right thing here ?
ack ... has other's have pointed out append() doesn't do the right thing. < aside > Splitting the database into partitions is potentially a good thing from a management perspective but my guess is that the 'tile loader' should inherit some smarts about which path to use based on file extension name rather then have it have to search multiple paths if 'stutter' is still an issue. < /aside > in any case the above should be > > ! #if defined(WIN32) && !defined(__CYGWIN__) > > ! tmp.append( ";"); > > ! #else > > ! tmp.append( ":"); > > ! #endif So that MingW works Cheers Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
