* Blinks the cursor and spreads out terminal output. */
| 229 | * Blinks the cursor and spreads out terminal output. |
| 230 | */ |
| 231 | void StartState::animate() |
| 232 | { |
| 233 | _cursor->setVisible(!_cursor->getVisible()); |
| 234 | _anim++; |
| 235 | |
| 236 | if (loading == LOADING_STARTED) |
| 237 | { |
| 238 | std::wostringstream ss; |
| 239 | ss << L"Loading OpenXcom " << Language::utf8ToWstr(OPENXCOM_VERSION_SHORT) << Language::utf8ToWstr(OPENXCOM_VERSION_GIT) << "..."; |
| 240 | if (Options::reload) |
| 241 | { |
| 242 | if (_anim == 2) |
| 243 | addLine(ss.str()); |
| 244 | } |
| 245 | else |
| 246 | { |
| 247 | switch (_anim) |
| 248 | { |
| 249 | case 1: |
| 250 | addLine(L"DOS/4GW Protected Mode Run-time Version 1.9"); |
| 251 | addLine(L"Copyright (c) Rational Systems, Inc. 1990-1993"); |
| 252 | break; |
| 253 | case 6: |
| 254 | addLine(L""); |
| 255 | addLine(L"OpenXcom initialisation"); |
| 256 | break; |
| 257 | case 7: |
| 258 | addLine(L""); |
| 259 | if (Options::mute) |
| 260 | { |
| 261 | addLine(L"No Sound Detected"); |
| 262 | } |
| 263 | else |
| 264 | { |
| 265 | addLine(L"SoundBlaster Sound Effects"); |
| 266 | if (Options::preferredMusic == MUSIC_MIDI) |
| 267 | addLine(L"General MIDI Music"); |
| 268 | else |
| 269 | addLine(L"SoundBlaster Music"); |
| 270 | addLine(L"Base Port 220 Irq 7 Dma 1"); |
| 271 | } |
| 272 | addLine(L""); |
| 273 | break; |
| 274 | case 9: |
| 275 | addLine(ss.str()); |
| 276 | break; |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Adds a line of text to the terminal and moves |
nothing calls this directly
no test coverage detected