Jump to content
  • Advertisement
Sign in to follow this  
angelinlight

Visual Studio Problems Reading Files

This topic is 2903 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

I've some problems when i run the game from visual studio.
The game have to read one specific folder, but it returns empty.
When i go to the folder the game read the entire content correctly.

Using oslib psp+pc i've the same problem, the visual studio seems to don't allow the game to read the content in the folder, when i go to the folder where is the buid and i run it, it runs correctly.

Then i can't debug the codes, because the game don't start without the files.

Someone know if the VS have some specific configuration to read files in the folder.

Thanks,sorry but my english sux.

Share this post


Link to post
Share on other sites
Advertisement
When debugging or running your application from the VS enviroment, your current working directory is not set to your 'debug' directory, but to wherever your .vsproj file is.

So simply copy the files you want to read from your debug dir to your main project dir. :)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!