From 164f53dc9172ee837da23c98426fb0bcfc2ed2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mercille?= Date: Sat, 13 May 2023 16:09:39 +0000 Subject: [PATCH] Fix for Issue 3359 - Log which devices fail to load properly, but still update... --- ProfileManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProfileManager.cpp b/ProfileManager.cpp index 8769f1ce..55a74654 100644 --- a/ProfileManager.cpp +++ b/ProfileManager.cpp @@ -379,9 +379,10 @@ bool ProfileManager::LoadProfileWithOptions \*---------------------------------------------------------*/ for(std::size_t controller_index = 0; controller_index < controllers.size(); controller_index++) { - ret_val = LoadDeviceFromListWithOptions(temp_controllers, temp_controller_used, controllers[controller_index], load_size, load_settings); + bool temp_ret_val = LoadDeviceFromListWithOptions(temp_controllers, temp_controller_used, controllers[controller_index], load_size, load_settings); std::string current_name = controllers[controller_index]->name + " @ " + controllers[controller_index]->location; - LOG_INFO("Profile loading: %s for %s", ( ret_val ? "Succeeded" : "FAILED!" ), current_name.c_str()); + LOG_INFO("Profile loading: %s for %s", ( temp_ret_val ? "Succeeded" : "FAILED!" ), current_name.c_str()); + ret_val |= temp_ret_val; } /*---------------------------------------------------------*\