Skip to content

Commit 8f828ea

Browse files
committed
Merge remote-tracking branch 'selectively/add-disablecloud' into dev
2 parents ef28fdb + b603e50 commit 8f828ea

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/config.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ bool CConfig::loadSettings()
135135
api = getSetting<bool>(node, "API", true);
136136
fakeEmail = getSetting<std::string>(node, "FakeEmail", "");
137137
fakeWalletBalance = getSetting<int32_t>(node, "FakeWalletBalance", 0);
138+
disableCloud = getSetting<bool>(node, "DisableCloud", true);
138139
extendedLogging = getSetting<bool>(node, "ExtendedLogging", false);
139140
logLevel = getSetting<unsigned int>(node, "LogLevel", 2);
140141

@@ -150,6 +151,7 @@ bool CConfig::loadSettings()
150151
g_pLog->info("API: %i\n", api.get());
151152
g_pLog->info("FakeEmail: %s\n", fakeEmail.get().c_str());
152153
g_pLog->info("FakeWalletBalance: %i\n", fakeWalletBalance.get());
154+
g_pLog->info("DisableCloud: %i\n", disableCloud.get());
153155
g_pLog->info("ExtendedLogging: %i\n", extendedLogging.get());
154156
g_pLog->info("LogLevel: %i\n", logLevel.get());
155157

src/config.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class CConfig {
6363
MTVariable<bool> warnHashMissmatch;
6464
MTVariable<bool> notifyInit;
6565
MTVariable<bool> api;
66+
MTVariable<bool> disableCloud;
6667
MTVariable<std::string> fakeEmail;
6768
MTVariable<int32_t> fakeWalletBalance;
6869
MTVariable<unsigned int> logLevel;

src/config_default.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ NotifyInit: yes
8585
#Enable sending commands to SLSsteam via /tmp/SLSsteam.API
8686
API: no
8787
88+
#Disable cloud saves for SLSsteam-unlocked games. Set to "no" if using CloudRedirect or similar.
89+
DisableCloud: yes
90+
8891
#Changes your account's E-Mail clientsided. Leave blank to disable
8992
FakeEmail: ""
9093

src/feats/apps.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ void Apps::getSubscribedApps(uint32_t* appList, size_t size, uint32_t& count)
146146

147147
bool Apps::shouldDisableCloud(uint32_t appId)
148148
{
149+
if (!g_config.disableCloud.get())
150+
return false;
151+
149152
return !g_pSteamEngine->getUser(0)->isSubscribed(appId);
150153
}
151154

0 commit comments

Comments
 (0)