From 909e57c84f1d0fffdc9b951ecf5b70bc58db463a Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Fri, 29 Oct 2021 00:45:30 +0100 Subject: Revert "Refactoring" This reverts commit 71f57c6f317fa118ac3f2bd231003743cb0e86cf. --- src/SSVOpenHexagon/Core/Steam.cpp | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/SSVOpenHexagon/Core/Steam.cpp b/src/SSVOpenHexagon/Core/Steam.cpp index c3808e3b..2d77f9fb 100644 --- a/src/SSVOpenHexagon/Core/Steam.cpp +++ b/src/SSVOpenHexagon/Core/Steam.cpp @@ -629,18 +629,25 @@ bool steam_manager::steam_manager_impl::update_hardcoded_achievements() { bool any_failure = false; - const auto check_failure = [&](const bool x) + if(!update_hardcoded_achievement_cube_master()) { - if(!x) - { - any_failure = true; - } - }; + any_failure = true; + } + + if(!update_hardcoded_achievement_hypercube_master()) + { + any_failure = true; + } + + if(!update_hardcoded_achievement_cube_god()) + { + any_failure = true; + } - check_failure(update_hardcoded_achievement_cube_master()); - check_failure(update_hardcoded_achievement_hypercube_master()); - check_failure(update_hardcoded_achievement_cube_god()); - check_failure(update_hardcoded_achievement_hypercube_god()); + if(!update_hardcoded_achievement_hypercube_god()) + { + any_failure = true; + } return !any_failure; } -- cgit v1.2.3