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

@@ -181,6 +181,13 @@ void BspDemo::initPhysics(const char* bspfilename)
file = fopen(bspfilename,"r");
}
if (!file)
{
//try again other path, cmake needs 4 levels deep back...
bspfilename = "../../../../BspDemo.bsp";
file = fopen(bspfilename,"r");
}
if (!file)
{
//try again other path,
//sight... visual studio leaves the current working directory in the projectfiles folder