Support running stk from the cmake bin directory.

This commit is contained in:
hiker
2014-01-21 08:59:55 +11:00
parent f346bc444e
commit b9b2f9626e

View File

@@ -158,6 +158,8 @@ FileManager::FileManager()
root_dir = "data/" ;
else if(m_file_system->existFile("../data"))
root_dir = "../data/" ;
else if(m_file_system->existFile("../../data"))
root_dir = "../../data/" ;
else if(m_file_system->existFile(exe_path+"data"))
root_dir = (exe_path+"data/").c_str();
else if(m_file_system->existFile(exe_path+"/../data"))