| 186 | |
| 187 | |
| 188 | bool FindFileOpen( const char * path, FindHandleT * handle, FindDataT & data ) |
| 189 | { |
| 190 | DIR * d = opendir( path ); |
| 191 | if( d != NULL ) |
| 192 | { |
| 193 | // To support findfirstfile() API we must return the first result immediately |
| 194 | if( FindFileNext( d, data ) ) |
| 195 | { |
| 196 | *handle = d; |
| 197 | return true; |
| 198 | } |
| 199 | |
| 200 | // Clean up |
| 201 | closedir( d ); |
| 202 | } |
| 203 | |
| 204 | return false; |
| 205 | } |
| 206 | |
| 207 | bool FindFileNext( FindHandleT handle, FindDataT & data ) |
| 208 | { |
nothing calls this directly
no test coverage detected