FILE* f = fopen(testfname.c_str(), "r");
if(f) {
fclose(f);
if(!PHYSFS_addToSearchPath(dir.c_str(), 1)) {
std::cout << "Warning: Couldn't add '" << dir
<< "' to physfs searchpath: " << PHYSFS_getLastError() << "\n";
FILE* f = fopen(testfname.c_str(), "r");
if(f) {
fclose(f);
if(!PHYSFS_addToSearchPath(dir.c_str(), 1)) {
std::cout << "Warning: Couldn't add '" << dir
<< "' to physfs searchpath: " << PHYSFS_getLastError() << "\n";