mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
support for _chdir in addition to the old (depreciated) chdir
This commit is contained in:
parent
547a72053c
commit
0e539de89a
@ -12,7 +12,7 @@
|
|||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef WIN32_VC
|
#if defined(WIN32_VC) || defined(WIN64_VC)
|
||||||
#include <direct.h> // for chdir
|
#include <direct.h> // for chdir
|
||||||
#endif
|
#endif
|
||||||
#include "mayaToEgg_server.h"
|
#include "mayaToEgg_server.h"
|
||||||
@ -452,7 +452,11 @@ poll() {
|
|||||||
buffers.push_back(buffer);
|
buffers.push_back(buffer);
|
||||||
}
|
}
|
||||||
// Change to the client's current dir
|
// Change to the client's current dir
|
||||||
|
#ifdef WIN64_VC
|
||||||
|
_chdir(cwd.c_str());
|
||||||
|
#else
|
||||||
chdir(cwd.c_str());
|
chdir(cwd.c_str());
|
||||||
|
#endif
|
||||||
|
|
||||||
// Pass in the 'new' argc and argv we got from the client
|
// Pass in the 'new' argc and argv we got from the client
|
||||||
this->parse_command_line(argc, cargv);
|
this->parse_command_line(argc, cargv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user