* When running under Cygwin on Windows, this will convert slash-based * paths into back-slash-based ones. Otherwise the ApptAssets file comparisons * fail later as they use back-slash separators under Windows. * * This operates in-place on the path string. */
| 29 | * This operates in-place on the path string. |
| 30 | */ |
| 31 | void convertPath(char *path) { |
| 32 | if (path != NULL && OS_PATH_SEPARATOR != '/') { |
| 33 | for (; *path; path++) { |
| 34 | if (*path == '/') { |
| 35 | *path = OS_PATH_SEPARATOR; |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /* |
| 42 | * Print usage info. |