added extra file search path for cmake-generated msvc projectfiles (needs 4 levels back)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user