From dfc55067e2f81e94b05fe873287bc4236ee99d2b Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Thu, 28 Dec 2023 02:15:09 +0200 Subject: [PATCH] static early purchase time --- dll/steam_apps.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dll/steam_apps.cpp b/dll/steam_apps.cpp index 4889829c..b881ddf6 100644 --- a/dll/steam_apps.cpp +++ b/dll/steam_apps.cpp @@ -105,8 +105,9 @@ uint32 Steam_Apps::GetEarliestPurchaseUnixTime( AppId_t nAppID ) if (nAppID == UINT32_MAX) return 0; // check Steam_Apps::BIsAppInstalled() TODO is this correct? if (nAppID == settings->get_local_game_id().AppID() || settings->hasDLC(nAppID)) { auto t = - std::chrono::system_clock::now() - - std::chrono::hours(24 * 4); // 4 days ago + // 4 days ago + startup_time + - std::chrono::hours(24 * 4); auto duration = std::chrono::duration_cast(t.time_since_epoch()); return (uint32)duration.count(); }