Skip to content

Commit 59a6fec

Browse files
committed
chore(apps): Remove UnownedStatus
It's not really useful anymore after commit 199e910
1 parent bc8e817 commit 59a6fec

5 files changed

Lines changed: 2 additions & 37 deletions

File tree

res/config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ IdleStatus:
5959
AppId: 0
6060
Title: ""
6161

62-
UnownedStatus:
63-
AppId: 0
64-
Title: ""
65-
6662
#Override game titles. Only works with owned appIds! For injected appIds use either UnownedStatus or combine them with FakeAppIds
6763
GameTitles:
6864

src/config.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -185,28 +185,6 @@ bool CConfig::loadSettings()
185185
setError(ELoadError::ParsingException);
186186
}
187187
}
188-
const auto unownedStatusNode = node["UnownedStatus"];
189-
if (unownedStatusNode)
190-
{
191-
try
192-
{
193-
auto appId = unownedStatusNode["AppId"].as<uint32_t>();
194-
auto title = unownedStatusNode["Title"].as<std::string>();
195-
196-
unownedStatus = FakeGame_t
197-
{
198-
appId,
199-
title
200-
};
201-
202-
g_pLog->info("Unowned status %s with AppId %u\n", title.c_str(), appId);
203-
}
204-
catch(...)
205-
{
206-
//g_pLog->warn("Failed to parse UnownedStatus");
207-
setError(ELoadError::ParsingException);
208-
}
209-
}
210188

211189
const auto dlcDataNode = node["DlcData"];
212190
if(dlcDataNode)

src/config.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class CConfig {
4949
MTVariable<std::unordered_set<uint32_t>> fakeOffline;
5050
MTVariable<std::unordered_map<uint32_t, uint32_t>> fakeAppIds;
5151
MTVariable<FakeGame_t> idleStatus;
52-
MTVariable<FakeGame_t> unownedStatus;
5352
MTVariable<std::unordered_map<uint32_t, std::string>> gameTitles;
5453
MTVariable<std::unordered_map<uint32_t, uint32_t>> subscriptionTimestamps;
5554

src/config_default.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ PlayNotOwnedGames: no
5959
AppId: 0
6060
Title: ""
6161
62-
UnownedStatus:
63-
AppId: 0
64-
Title: ""
65-
6662
#Override game titles. Only works with owned appIds! For injected appIds use either UnownedStatus or combine them with FakeAppIds
6763
GameTitles:
6864

src/feats/apps.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,14 @@ void Apps::sendGamesPlayed(CMsgClientGamesPlayed* msg)
201201
g_pLog->debug("Playing game %llu with flags %u & pid %u\n", game.game_id(), game.game_flags(), game.process_id());
202202
}
203203

204-
if (owned)
204+
if (owned || msg->games_played_size() > 0)
205205
{
206206
return;
207207
}
208208

209-
const int games = msg->games_played_size();
210-
const auto statusApp = games ? g_config.unownedStatus.get() : g_config.idleStatus.get();
209+
const auto statusApp = g_config.idleStatus.get();
211210
if (statusApp.appId)
212211
{
213-
//pMsg->send(); //Send original message first, otherwise Valve's backend might fuck up the order
214-
//Only happens in owned games for some reason, so idk
215-
216212
auto game = msg->add_games_played();
217213
game->set_game_id(statusApp.appId);
218214
game->set_game_extra_info(statusApp.title);

0 commit comments

Comments
 (0)