mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Merge branch 'main' into android
This commit is contained in:
@@ -487,15 +487,12 @@ bool InputManager::save(size_t player_index, std::string_view filename)
|
||||
emulated_controller->type_string()
|
||||
}.c_str());
|
||||
|
||||
if(!is_default_file)
|
||||
emulated_controller->m_profile_name = std::string{filename};
|
||||
|
||||
if (emulated_controller->has_profile_name())
|
||||
emulated_controller_node.append_child("profile").append_child(pugi::node_pcdata).set_value(
|
||||
emulated_controller->get_profile_name().c_str());
|
||||
else if (!is_default_file)
|
||||
{
|
||||
emulated_controller->m_profile_name = std::string{filename};
|
||||
emulated_controller_node.append_child("profile").append_child(pugi::node_pcdata).set_value(
|
||||
emulated_controller->get_profile_name().c_str());
|
||||
}
|
||||
|
||||
// custom settings
|
||||
emulated_controller->save(emulated_controller_node);
|
||||
@@ -949,7 +946,7 @@ std::optional<glm::ivec2> InputManager::get_right_down_mouse_info(bool* is_pad)
|
||||
|
||||
void InputManager::update_thread()
|
||||
{
|
||||
SetThreadName("InputManager::update_thread");
|
||||
SetThreadName("Input_update");
|
||||
while (!m_update_thread_shutdown.load(std::memory_order::relaxed))
|
||||
{
|
||||
std::shared_lock lock(m_mutex);
|
||||
|
||||
Reference in New Issue
Block a user