Jump to content
  • Advertisement
Sign in to follow this  
virious

ScriptBuilder + XBox360 + VS2010 _getcwd issue

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

If you intended to correct an error in the post then please contact us.

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:

AngelScript\add_on\scriptbuilder.cpp(680): error C3861: '_getcwd': identifier not found

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

Share this post


Link to post
Share on other sites
Advertisement
_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 this post


Link to post
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 this post


Link to post
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.

Instead


#if _XBOX_VER >= 200


can be used.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!