mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Make debugging easier for me
Modification of ASF.json is troublesome when I work with GitHub tree, therefore make it possible for me to execute and test commands but only in debugging builds - public ASF releases are always compiled in release mode.
This commit is contained in:
@@ -104,7 +104,7 @@ namespace ArchiSteamFarm {
|
||||
|
||||
private static bool IsOwner(ulong steamID) {
|
||||
if (steamID != 0) {
|
||||
return steamID == Program.GlobalConfig.SteamOwnerID;
|
||||
return (steamID == Program.GlobalConfig.SteamOwnerID) || (Debugging.IsDebugBuild && (steamID == SharedInfo.ArchiSteamID));
|
||||
}
|
||||
|
||||
Logging.LogNullError(nameof(steamID));
|
||||
|
||||
@@ -58,6 +58,8 @@ namespace ArchiSteamFarm {
|
||||
internal const string DebugDirectory = "debug";
|
||||
internal const string LogFile = "log.txt";
|
||||
|
||||
internal const ulong ArchiSteamID = 76561198006963719;
|
||||
|
||||
internal const string GithubReleaseURL = "https://api.github.com/repos/" + GithubRepo + "/releases"; // GitHub API is HTTPS only
|
||||
internal const string GlobalConfigFileName = ASF + ".json";
|
||||
internal const string GlobalDatabaseFileName = ASF + ".db";
|
||||
|
||||
Reference in New Issue
Block a user