@@ -47,6 +47,9 @@ static const char* defaultConfig =
4747" DenuvoGames:\n\n "
4848" #Spoof Denuvo Games owner instead of blocking them\n "
4949" DenuvoSpoof: no\n\n "
50+ " #Pretends Steam never received an Encrypted AppTicket, so it\n "
51+ " #only gets saved to the cache instead of \" being used up\"\n "
52+ " BlockEncryptedAppTickets: no\n\n "
5053" #Automatically disable SLSsteam when steamclient.so does not match a predefined file hash that is known to work\n "
5154" #You should enable this if you're planing to use SLSsteam with Steam Deck's gamemode\n "
5255" SafeMode: no\n\n "
@@ -57,6 +60,15 @@ static const char* defaultConfig =
5760" WarnHashMissmatch: no\n\n "
5861" #Notify when SLSsteam is done initializing\n "
5962" NotifyInit: yes\n\n "
63+ " #Log levels:\n "
64+ " #Once = 0\n "
65+ " #Debug = 1\n "
66+ " #Info = 2\n "
67+ " #NotifyShort = 3\n "
68+ " #NotifyLong = 4\n "
69+ " #Warn = 5\n "
70+ " #None = 6\n "
71+ " LogLevel: 2\n\n "
6072" #Logs all calls to Steamworks (this makes the logfile huge! Only useful for debugging/analyzing\n "
6173" ExtendedLogging: no" ;
6274
@@ -147,6 +159,8 @@ bool CConfig::loadSettings()
147159 warnHashMissmatch = getSetting<bool >(node, " WarnHashMissmatch" , false );
148160 notifyInit = getSetting<bool >(node, " NotifyInit" , true );
149161 extendedLogging = getSetting<bool >(node, " ExtendedLogging" , false );
162+ logLevel = getSetting<unsigned int >(node, " LogLevel" , 2 );
163+ blockEncryptedAppTickets = getSetting<bool >(node, " BlockEncryptedAppTickets" , false );
150164 denuvoSpoof = getSetting<bool >(node, " DenuvoSpoof" , false );
151165
152166 // TODO: Create smart logging function to log them automatically via getSetting
@@ -159,7 +173,9 @@ bool CConfig::loadSettings()
159173 g_pLog->info (" WarnHashMissmatch: %i\n " , warnHashMissmatch);
160174 g_pLog->info (" NotifyInit: %i\n " , notifyInit);
161175 g_pLog->info (" ExtendedLogging: %i\n " , extendedLogging);
176+ g_pLog->info (" LogLevel: %i\n " , logLevel);
162177 g_pLog->info (" DenuvoSpoof: %i\n " , denuvoSpoof);
178+ g_pLog->info (" BlockEncryptedAppTickets: %i\n " , blockEncryptedAppTickets);
163179
164180 // TODO: Create function to parse these kinda nodes, instead of c+p them
165181 const auto appIdsNode = node[" AppIds" ];
@@ -217,7 +233,7 @@ bool CConfig::loadSettings()
217233
218234 CDlcData data;
219235 data.parentId = parentId;
220- g_pLog->debug (" Adding DlcData for %u\n " , parentId);
236+ g_pLog->info (" Adding DlcData for %u\n " , parentId);
221237
222238 for (auto & dlc : app.second )
223239 {
@@ -226,7 +242,7 @@ bool CConfig::loadSettings()
226242 const std::string dlcName = dlc.second .as <std::string>();
227243
228244 data.dlcIds [dlcId] = dlcName;
229- g_pLog->debug (" DlcId %u -> %s\n " , dlcId, dlcName.c_str ());
245+ g_pLog->info (" DlcId %u -> %s\n " , dlcId, dlcName.c_str ());
230246 }
231247
232248 dlcData[parentId] = data;
@@ -259,7 +275,7 @@ bool CConfig::loadSettings()
259275 denuvoGames[steamId].emplace (appId);
260276
261277 // Again, not loggin SteamId because of privacy
262- g_pLog->debug (" Added DenuvoGame %u\n " , appId);
278+ g_pLog->info (" Added DenuvoGame %u\n " , appId);
263279 }
264280 }
265281 catch (...)
0 commit comments