mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-20 01:46:17 +00:00
DepotDownloader: Fixed NullReferenceException, fixed not reloading CDR if cdr.proto is deleted
--HG-- extra : amend_source : b4a997ff2524895120eaf1f53aa240685846f85a
This commit is contained in:
1 parent
9fbabcfa5d
commit
ad4fd3bfac
1 file changed
+5
-3
@@ -110,9 +110,11 @@ namespace DepotDownloader
|
||||
{
|
||||
Console.Write( "Updating CDR..." );
|
||||
|
||||
if (DateTime.Now > ConfigCache.Instance.CDRCacheTime)
|
||||
var hasCachedCDR = File.Exists(CDR_FILENAME);
|
||||
|
||||
if (DateTime.Now > ConfigCache.Instance.CDRCacheTime || !hasCachedCDR)
|
||||
{
|
||||
byte[] cdrHash = ConfigCache.Instance.CDRHash;
|
||||
byte[] cdrHash = hasCachedCDR ? ConfigCache.Instance.CDRHash : null;
|
||||
|
||||
foreach (var configServer in ServerCache.ConfigServers)
|
||||
{
|
||||
@@ -350,7 +352,7 @@ namespace DepotDownloader
|
||||
{
|
||||
App app = GetAppBlob( depotId );
|
||||
|
||||
if ( app.UserDefined == null )
|
||||
if (app == null || app.UserDefined == null )
|
||||
return null;
|
||||
|
||||
foreach ( var entry in app.UserDefined )
|
||||
|
||||
Reference in new issue
Block a user