| 247 | //========================================================================== |
| 248 | |
| 249 | void DefaultExtension (FString &path, const char *extension, bool forcebackslash) |
| 250 | { |
| 251 | const char *src = &path[int(path.Len())-1]; |
| 252 | |
| 253 | while (src != &path[0] && !IsSeperator(*src, forcebackslash)) |
| 254 | { |
| 255 | if (*src == '.') |
| 256 | return; // it has an extension |
| 257 | src--; |
| 258 | } |
| 259 | |
| 260 | path += extension; |
| 261 | } |
| 262 | |
| 263 | |
| 264 | //========================================================================== |
no test coverage detected