diff options
author | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-10-29 00:45:30 +0100 |
---|---|---|
committer | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-10-29 00:45:30 +0100 |
commit | 909e57c84f1d0fffdc9b951ecf5b70bc58db463a (patch) | |
tree | fb54029b355e4818aa9ffe13d74797d8d726c490 | |
parent | 71f57c6f317fa118ac3f2bd231003743cb0e86cf (diff) |
Revert "Refactoring"2.0.7
This reverts commit 71f57c6f317fa118ac3f2bd231003743cb0e86cf.
-rw-r--r-- | src/SSVOpenHexagon/Core/Steam.cpp | 27 |
1 files 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; } |