mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 16:01:19 +12:00
Remove deprecated logging system and expose developer logging window (#825)
This commit is contained in:
parent
b8dec03cb5
commit
d903b2cf12
47 changed files with 148 additions and 283 deletions
|
@ -159,7 +159,7 @@ ControllerProviderPtr ControllerFactory::CreateControllerProvider(InputAPI::Type
|
|||
}
|
||||
catch (const std::bad_cast&)
|
||||
{
|
||||
cemuLog_force("failing to cast ControllerProviderSettings class to DSUControllerProvider");
|
||||
cemuLog_log(LogType::Force, "failing to cast ControllerProviderSettings class to DSUControllerProvider");
|
||||
return std::make_shared<DSUControllerProvider>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ InputManager::InputManager()
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force(ex.what());
|
||||
cemuLog_log(LogType::Force, ex.what());
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
@ -67,7 +67,7 @@ void InputManager::load() noexcept
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("can't load controller profile: {}", ex.what());
|
||||
cemuLog_log(LogType::Force, "can't load controller profile: {}", ex.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ bool InputManager::load(size_t player_index, std::string_view filename)
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("can't load controller: {}", ex.what());
|
||||
cemuLog_log(LogType::Force, "can't load controller: {}", ex.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ bool InputManager::load(size_t player_index, std::string_view filename)
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("can't load config file: {}", ex.what());
|
||||
cemuLog_log(LogType::Force, "can't load config file: {}", ex.what());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -420,7 +420,7 @@ bool InputManager::migrate_config(const fs::path& file_path)
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("can't migrate config file {}: {}", file_path.string(), ex.what());
|
||||
cemuLog_log(LogType::Force, "can't migrate config file {}: {}", file_path.string(), ex.what());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -436,7 +436,7 @@ void InputManager::save() noexcept
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("can't save controller profile: {}", ex.what());
|
||||
cemuLog_log(LogType::Force, "can't save controller profile: {}", ex.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -620,7 +620,7 @@ EmulatedControllerPtr InputManager::set_controller(size_t player_index, Emulated
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force("Unable to set controller type {} on player index {}: {}", type, player_index, ex.what());
|
||||
cemuLog_log(LogType::Force, "Unable to set controller type {} on player index {}: {}", type, player_index, ex.what());
|
||||
}
|
||||
|
||||
return {};
|
||||
|
|
|
@ -114,7 +114,7 @@ private:
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
cemuLog_force(ex.what());
|
||||
cemuLog_log(LogType::Force, ex.what());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -221,7 +221,7 @@ void VPADController::update_touch(VPADStatus_t& status)
|
|||
|
||||
m_last_touch_position = glm::ivec2{ status.tpData.x, status.tpData.y };
|
||||
|
||||
/*cemuLog_force("TDATA: {},{} -> {},{} -> {},{} -> {},{} -> {},{} -> {},{}",
|
||||
/*cemuLog_log(LogType::Force, "TDATA: {},{} -> {},{} -> {},{} -> {},{} -> {},{} -> {},{}",
|
||||
left_mouse->x, left_mouse->y,
|
||||
(left_mouse.value() - image_pos).x, (left_mouse.value() - image_pos).y,
|
||||
relative_mouse_pos.x, relative_mouse_pos.y,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue