| 203 | return FindLocalizedMissionHtmlFile(GetMissionDirectory(), "briefing"); |
| 204 | } |
| 205 | |
| 206 | void CreatePath(RString path) |
| 207 | { |
| 208 | // string will be changed temporarily |
| 209 | char* start = (char*)path.Data(); |
| 210 | char* end = start; |
| 211 | while (*end) |
| 212 | { |
| 213 | if (*end == '\\' || *end == '/') |
| 214 | { |
| 215 | char saved = *end; |
| 216 | *end = 0; |
| 217 | ::CreateDirectory(path, nullptr); |
| 218 | *end = saved; |
| 219 | } |
| 220 | end++; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | RString GetSaveDirectory() |
no test coverage detected