summaryrefslogtreecommitdiff
path: root/src/SSVOpenHexagon/Core/Steam.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SSVOpenHexagon/Core/Steam.cpp')
-rw-r--r--src/SSVOpenHexagon/Core/Steam.cpp27
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;
}