From ffed42f8b1562722bf4d98f1a02646dfb43edb15 Mon Sep 17 00:00:00 2001 From: Jamiras Date: Sat, 13 Jan 2024 09:12:04 -0700 Subject: [PATCH] update rcheevos --- rcheevos | 2 +- src/data/context/GameContext.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rcheevos b/rcheevos index 4e5a8632..48942653 160000 --- a/rcheevos +++ b/rcheevos @@ -1 +1 @@ -Subproject commit 4e5a863269771f3f0ff9206d0d360a61ef861c7f +Subproject commit 489426539757de6106a4d0d34d3495f5922f62df diff --git a/src/data/context/GameContext.cpp b/src/data/context/GameContext.cpp index 3d8d9370..388c4afa 100644 --- a/src/data/context/GameContext.cpp +++ b/src/data/context/GameContext.cpp @@ -282,11 +282,15 @@ void GameContext::EndLoadGame(int nResult, bool bWasPaused, bool bShowSoftcoreWa } // modified assets should start in the inactive state + size_t nLocalAssets = 0; for (gsl::index nIndex = 0; nIndex < gsl::narrow_cast(m_vAssets.Count()); ++nIndex) { auto* pAsset = m_vAssets.GetItemAt(nIndex); if (pAsset != nullptr && pAsset->GetChanges() != ra::data::models::AssetChanges::None) { + if (pAsset->HasUnpublishedChanges()) + ++nLocalAssets; + if (pAsset->IsActive()) { if (pAsset->GetType() == ra::data::models::AssetType::RichPresence && @@ -302,6 +306,8 @@ void GameContext::EndLoadGame(int nResult, bool bWasPaused, bool bShowSoftcoreWa } } } + if (nLocalAssets > 0) + RA_LOG_INFO("%d unpublished assets loaded", nLocalAssets); // finish up m_vAssets.EndUpdate();