From e8639c7e107ba0f689250b97b44c9221419dca81 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Sat, 2 Nov 2024 00:13:13 -0300 Subject: [PATCH] improve: add "async" identifier to save all players --- src/game/scheduling/save_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/scheduling/save_manager.cpp b/src/game/scheduling/save_manager.cpp index 0ba421ca354..58e1cefd563 100644 --- a/src/game/scheduling/save_manager.cpp +++ b/src/game/scheduling/save_manager.cpp @@ -36,7 +36,8 @@ void SaveManager::saveAll() { Benchmark bm_players; const auto &players = game.getPlayers(); - logger.info("Saving {} players...", players.size()); + const auto async = g_configManager().getBoolean(TOGGLE_SAVE_ASYNC); + logger.info("Saving {} players... (Async: {})", players.size(), async ? "Enabled" : "Disabled"); for (const auto &[_, player] : players) { player->loginPosition = player->getPosition(); doSavePlayer(player);