From 762a09b6513277fed889c72c08f5c41d19e2c60b Mon Sep 17 00:00:00 2001 From: shalzuth Date: Fri, 1 Nov 2024 12:17:45 -0700 Subject: [PATCH] Add public modifier to 3 classes to enable linking Setting these 3 classes as public allows another C# app to link to the exe and use the it as a reference to download files --- DepotDownloader/AccountSettingsStore.cs | 2 +- DepotDownloader/ContentDownloader.cs | 4 ++-- DepotDownloader/DownloadConfig.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DepotDownloader/AccountSettingsStore.cs b/DepotDownloader/AccountSettingsStore.cs index 7e1594be..8deb2843 100644 --- a/DepotDownloader/AccountSettingsStore.cs +++ b/DepotDownloader/AccountSettingsStore.cs @@ -12,7 +12,7 @@ using ProtoBuf; namespace DepotDownloader { [ProtoContract] - class AccountSettingsStore + public class AccountSettingsStore { // Member 1 was a Dictionary for SentryData. diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 55b9cb81..a52934f9 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -15,11 +15,11 @@ using SteamKit2.CDN; namespace DepotDownloader { - class ContentDownloaderException(string value) : Exception(value) + public class ContentDownloaderException(string value) : Exception(value) { } - static class ContentDownloader + public static class ContentDownloader { public const uint INVALID_APP_ID = uint.MaxValue; public const uint INVALID_DEPOT_ID = uint.MaxValue; diff --git a/DepotDownloader/DownloadConfig.cs b/DepotDownloader/DownloadConfig.cs index c0d4f6cb..e3b7d609 100644 --- a/DepotDownloader/DownloadConfig.cs +++ b/DepotDownloader/DownloadConfig.cs @@ -6,7 +6,7 @@ using System.Text.RegularExpressions; namespace DepotDownloader { - class DownloadConfig + public class DownloadConfig { public int CellID { get; set; } public bool DownloadAllPlatforms { get; set; }