| 119 | { |
| 120 | |
| 121 | void DedicatedServerLoop() |
| 122 | { |
| 123 | while (true) |
| 124 | { |
| 125 | AppServerLoop(); |
| 126 | |
| 127 | if (GApp->m_validateQuit) |
| 128 | { |
| 129 | DDTerm(); |
| 130 | if (ENGINE_CONFIG.hideCursor) |
| 131 | { |
| 132 | SDL_ShowCursor(); |
| 133 | } |
| 134 | int ret = 0; |
| 135 | LOG_DEBUG(Core, "Exit {}", ret); |
| 136 | Sleep(500); |
| 137 | exit(ret); |
| 138 | } |
| 139 | Sleep(1); // yield |
| 140 | } |
| 141 | } |
| 142 | } // namespace Poseidon |
no test coverage detected