| 273 | //========================================================================== |
| 274 | |
| 275 | FString ExtractFilePath (const char *path, bool forcebackslash) |
| 276 | { |
| 277 | const char *src; |
| 278 | |
| 279 | src = path + strlen(path) - 1; |
| 280 | |
| 281 | // |
| 282 | // back up until a \ or the start |
| 283 | // |
| 284 | while (src != path && !IsSeperator(*(src-1), forcebackslash)) |
| 285 | src--; |
| 286 | |
| 287 | return FString(path, src - path); |
| 288 | } |
| 289 | |
| 290 | //========================================================================== |
| 291 | // |
no test coverage detected