Switch log types to enum

This commit is contained in:
Yousef Khadadeh 2026-05-16 21:56:58 +03:00
parent 24b2be60e5
commit 4c14c3dc57
27 changed files with 203 additions and 105 deletions

View file

@ -265,10 +265,10 @@ void InputManager::get_clipboard_image_data_SDL(const std::function<void(std::st
throw std::runtime_error("Bitmap format is unsupported");
}
catch(const std::runtime_error& e) {
Logger::get().log("INFO", std::string("[InputManager::get_clipboard_image_data_SDL] Error thrown: ") + e.what());
Logger::get().log(Logger::LogType::INFO, std::string("[InputManager::get_clipboard_image_data_SDL] Error thrown: ") + e.what());
}
catch(...) {
Logger::get().log("INFO", "[InputManager::get_clipboard_image_data_SDL] Unknown error thrown");
Logger::get().log(Logger::LogType::INFO, "[InputManager::get_clipboard_image_data_SDL] Unknown error thrown");
}
if(!result.empty())
callback(std::string_view((char*)(result.data()), result.size())); // This part of the code should throw errors