From fd0126ee25be51d8787e4a0f41821c7fab23ef2a Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 6 Jul 2024 01:41:50 +0300 Subject: [PATCH] change `Steam_Apps::SetDlcContext()` according to review notes by universal963 --- dll/steam_apps.cpp | 5 ++++- helpers/dbg_log/dbg_log.hpp | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dll/steam_apps.cpp b/dll/steam_apps.cpp index e9cb5f9a..8e7c0986 100644 --- a/dll/steam_apps.cpp +++ b/dll/steam_apps.cpp @@ -471,7 +471,10 @@ bool Steam_Apps::SetDlcContext( AppId_t nAppID ) PRINT_DEBUG("%u // TODO", nAppID); std::lock_guard lock(global_mutex); - if (nAppID == 0) return false; // TODO is this correct? (see Steam_Apps::BIsDlcInstalled) + // TODO this one is very odd, in all other functions of this interface they were returning false + // tested by `universal963` on real steam + if (nAppID == 0) return true; + if (nAppID == UINT32_MAX) return false; // TODO is this correct? (see Steam_Apps::BIsDlcInstalled) if (nAppID == settings->get_local_game_id().AppID()) return true; // TODO is this correct? diff --git a/helpers/dbg_log/dbg_log.hpp b/helpers/dbg_log/dbg_log.hpp index 8d984f7e..8dd59c81 100644 --- a/helpers/dbg_log/dbg_log.hpp +++ b/helpers/dbg_log/dbg_log.hpp @@ -1,6 +1,5 @@ #pragma once -#include #include #include #include