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:
JustArchi
2016-08-13 04:12:39 +02:00
parent 8e1d02f43f
commit 26bd76cc4a
2 changed files with 3 additions and 1 deletions

View File

@@ -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));

View File

@@ -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";