• 13
• 18
• 19
• 27
• 9

# ScriptBuilder + XBox360 + VS2010 _getcwd issue

This topic is 2223 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello, we are currently trying to setup our VS 2010 for XBox 360.
In debug configuration we get this info:

1>AngelScript\add_on\scriptbuilder.cpp(680): warning C4996: '_getcwd': _getcwd() is not supported on Xbox.
1> d:\Program Files (x86)\Microsoft Xbox 360 SDK\include\xbox\direct.h(57) : see declaration of '_getcwd'

and in release configuration we get this info:

Are there any issues or differences in debug/release defines related to the _getcwd function?

##### Share on other sites
_getcwd is a standard C++ function, apparently this is not supported on the XBox 360. I have no idea why the error message is different for debug mode and release mode. You'll probably need to ask Microsoft to get that answer . Anyway, this is coming from the function GetCurrentDir() in the scriptbuilder/scriptbuilder.cpp add-on. I'd appreciate it if you could let me know the changes that needs to be done to make the function work on the XBox 360.

##### Share on other sites
My solution to this problem is here: http://pastebin.com/Qv4z9tyK. Also I had to add include to "as_config.h" file because platform defines are not seen properly in scriptbuilder without it.

Could you check this and verify if this is a correct solution?

##### Share on other sites
Thanks. I'll make this change in the SDK, though the as_config.h is not necessary and is only meant for internal use in the as core.

 #if _XBOX_VER >= 200 

can be used.