* * rct2: 0x006EE2E4 */
| 316 | * rct2: 0x006EE2E4 |
| 317 | */ |
| 318 | WindowBase* WindowGetMain() |
| 319 | { |
| 320 | for (auto& w : gWindowList) |
| 321 | { |
| 322 | if (w->flags.has(WindowFlag::dead)) |
| 323 | continue; |
| 324 | if (w->classification == WindowClass::mainWindow) |
| 325 | { |
| 326 | return w.get(); |
| 327 | } |
| 328 | } |
| 329 | return nullptr; |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * |
no test coverage detected