@@ -31,6 +31,7 @@ class SteamTracker
31
31
private bool $ SyncProtobufs = false ;
32
32
private bool $ DumpJavascriptFiles = false ;
33
33
private bool $ UpdateManifestUrls = false ;
34
+ private bool $ UpdateSSRUrls = false ;
34
35
35
36
/** @var array<string, string> */
36
37
private array $ ClientArchiveFolder =
@@ -133,7 +134,7 @@ public function __construct( string $Option )
133
134
while ( !empty ( $ this ->URLsToFetch ) && $ Tries -- > 0 );
134
135
}
135
136
136
- if ( !empty ( $ this ->CurrentSSRFiles ) )
137
+ if ( $ this -> UpdateSSRUrls && !empty ( $ this ->CurrentSSRFiles ) )
137
138
{
138
139
do
139
140
{
@@ -528,12 +529,15 @@ private function HandleResponse( string $File, string $Data, string $URL ) : boo
528
529
mkdir ( $ Folder , 0755 , true );
529
530
}
530
531
532
+ $ IsSSR =
533
+ str_starts_with ( $ OriginalFile , 'store.steampowered.com/ssr ' );
534
+
531
535
if (
536
+ $ IsSSR ||
532
537
str_ends_with ( $ File , 'english-json.js ' ) ||
533
538
str_starts_with ( $ OriginalFile , 'www.underlords.com/ ' ) ||
534
539
str_starts_with ( $ OriginalFile , 'www.dota2.com/ ' ) ||
535
540
str_starts_with ( $ OriginalFile , 'www.counter-strike.net/ ' ) ||
536
- str_starts_with ( $ OriginalFile , 'store.steampowered.com/ssr ' ) ||
537
541
str_starts_with ( $ OriginalFile , 'Scripts/WebUI/steammobile ' ) ||
538
542
str_contains ( $ OriginalFile , '/webui/ ' ) ||
539
543
str_contains ( $ OriginalFile , '/legacy_web/ ' ) ||
@@ -564,6 +568,11 @@ private function HandleResponse( string $File, string $Data, string $URL ) : boo
564
568
565
569
file_put_contents ( $ File , $ Data );
566
570
571
+ if ( $ IsSSR )
572
+ {
573
+ $ this ->UpdateSSRUrls = true ;
574
+ }
575
+
567
576
if ( str_ends_with ( $ File , '.js ' ) )
568
577
{
569
578
if ( str_ends_with ( $ File , '/manifest.js ' ) )
0 commit comments