| 151 | } |
| 152 | |
| 153 | static inline time_t GetFileModTime(const char *path) |
| 154 | { |
| 155 | char filepath[PLATFORM_MAX_PATH]; |
| 156 | g_pSM->BuildPath(Path_SM, filepath, sizeof(filepath), "gamedata/%s.txt", path); |
| 157 | #ifdef PLATFORM_WINDOWS |
| 158 | struct _stat64 s; |
| 159 | if (_stat64(filepath, &s) != 0) |
| 160 | #elif defined PLATFORM_POSIX |
| 161 | struct stat s; |
| 162 | if (stat(filepath, &s) != 0) |
| 163 | #endif |
| 164 | { |
| 165 | return 0; |
| 166 | } |
| 167 | return s.st_mtime; |
| 168 | } |
| 169 | |
| 170 | CGameConfig::CGameConfig(const char *file, const char *engine) |
| 171 | { |
no test coverage detected