* Displays a message box with an error message. * @param error Error message. */
| 76 | * @param error Error message. |
| 77 | */ |
| 78 | void showError(const std::string &error) |
| 79 | { |
| 80 | #ifdef _WIN32 |
| 81 | MessageBoxA(NULL, error.c_str(), "OpenXcom Error", MB_ICONERROR | MB_OK); |
| 82 | #else |
| 83 | std::cerr << error << std::endl; |
| 84 | #endif |
| 85 | Log(LOG_FATAL) << error; |
| 86 | } |
| 87 | |
| 88 | #ifndef _WIN32 |
| 89 | /** |