Am 11.11.2012 19:05, schrieb Geoff McLane:
> That's strange no one has done this for WIN32 ;=()
I guess most Windows people are using launchers. It's mainly Linux
people who love command-lines ;-).
> #if defined(_WIN32)
> // with absPath NULL, will allocate, and ignore length
> char *buf = _fullpath( NULL, path.c_str(), _MAX_PATH );
> if (!buf) {
> SG_LOG(... as per unix ...);
> return path; // failed, return path as is
> }
> std::string p(buf);
> free(buf); // was allocated using malloc(), so
> return p;
Thanks. I have committed it, but can't test it myself. Can some check
with latest SimGear if relative paths are working for Windows now - with
standard MSVC build (check for "Nasal ... not found" errors).
Actually, thinking about it: cygwin is POSIX, so it can use the POSIX
implementation.
I'm not sure if the compiler switches in sgpath are really correct - it
assumes normal "Windows" paths for cygwin (WIN32 is also defined for
cygwin). I guess Cygwin isn't really well maintained for FG right now.
Patches welcome... ;-)
cheers,
Thorsten
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel