+ // else
+ char * tmp_c = getcwd(NULL, 0);
+ resourceFile = tmp_c;
+ free(tmp_c);
+ resourceFile += "/";
+ for(int i=0; i<levelUp; i++)
+ resourceFile += "../";
+ resourceFile += "resources/";
+ resourceFile += filename;
+ std::ifstream my_file(resourceFile.c_str());
+ if (!my_file.good())