| 51 | |
| 52 | template<> |
| 53 | void Error::impl::Handle<spdlog::level::err>(std::wstring_view message, std::wstring_view error_message, std::source_location location) |
| 54 | { |
| 55 | auto dialogBoxThread = HandleCommon(spdlog::level::err, message, error_message, location, UTIL_WIDEN(UTF8_ERROR_TITLE), APP_NAME L" has encountered an error.", MB_ICONWARNING); |
| 56 | if (dialogBoxThread.joinable()) |
| 57 | { |
| 58 | dialogBoxThread.detach(); |
| 59 | } |
| 60 | else |
| 61 | { |
| 62 | DebugBreak(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | template<> |
| 67 | void Error::impl::Handle<spdlog::level::critical>(std::wstring_view message, std::wstring_view error_message, std::source_location location) |