added extra file search path for cmake-generated msvc projectfiles (needs 4 levels back)

This commit is contained in:
erwin.coumans
2010-02-08 08:51:08 +00:00
parent a6d9e977f7
commit 558abff4db
5 changed files with 24 additions and 2 deletions

View File

@@ -103,6 +103,12 @@ void CharacterDemo::initPhysics()
FILE* file = fopen(bspfilename,"r");
if (!file)
{
//cmake generated visual studio projects need 4 levels back
bspfilename = "../../../../BspDemo.bsp";
file = fopen(bspfilename,"r");
}
if (!file)
{
//visual studio leaves the current working directory in the projectfiles folder
bspfilename = "../../BspDemo.bsp";