I can't compile and run my program through Visual Studios, since my game then can't find the media folder where all my 3d-models etc. are located.
I've set my VS to compile into a folder called the same as my project. And if I go into that folder after compilation and run the .exe file that VS just created it works fine and and all media files can be found. But Compile And Run crashes.
I guess this isn't a biggie, but I would like to use VS's debug to find memory leaks.
Example:
Code: Select all
env->getSkin()->setFont(env->getFont("media/fonts/GillSans12.png"));
terrainNode = smgr->addTerrainSceneNode("media/terrain-heightmap.bmp");
Executeable compiled to F:\Projects\ProjectName\ProjectName\
Media files in F:\Projects\ProjectName\ProjectName\Media\
Thx in advance.