| 487 | } |
| 488 | |
| 489 | int fs_parent_dir(char *path) |
| 490 | { |
| 491 | char *parent = nullptr; |
| 492 | for(; *path; ++path) |
| 493 | { |
| 494 | if(*path == '/' || *path == '\\') |
| 495 | parent = path; |
| 496 | } |
| 497 | |
| 498 | if(parent) |
| 499 | { |
| 500 | *parent = 0; |
| 501 | return 0; |
| 502 | } |
| 503 | return 1; |
| 504 | } |
| 505 | |
| 506 | void fs_normalize_path(char *path) |
| 507 | { |
no outgoing calls