Erik Hofman a écrit :

Frederic Bouvier wrote:

What is missing for windows ?


Stefan Seifert wrote:

Missing is support for Windows, where the directory should be like %PROFILE%/Application Data/FlightGear (or such). Also I don't know if Windows supports the mkdir function. Would be nice if someone could port.


there is a mkdir function in windows. Well actually, there is a _mkdir function like this :

#*ifdef* _MSC_VER
        ret = ( _mkdir( path_.c_str() ) == 0 );
#*else*
        ret = ( mkdir( path_.c_str(), 0755 ) == 0 );
#*endif*

What's wrong in storing informations in %APPDATA%/flightgear.org just like fgrun and fgadmin ( they both use fltk for that ) ?

Anyway, this is a minor effort. If you commit this patch, I will send you a windows port.

-Fred



_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to