| 493 | } |
| 494 | |
| 495 | bool cResourceMan::FileExists(const std::string& pPath) const { |
| 496 | struct stat info; |
| 497 | |
| 498 | if (stat(pPath.c_str(), &info) != 0) |
| 499 | return false; |
| 500 | else if (info.st_mode & S_IFDIR) |
| 501 | return true; |
| 502 | else if (info.st_mode & S_IFMT) |
| 503 | return true; |
| 504 | |
| 505 | return false; |
| 506 | } |
| 507 | |
| 508 | #ifdef WIN32 |
| 509 | #include "Windows.h" |