mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Closes #1316
This commit is contained in:
@@ -449,6 +449,16 @@ namespace ArchiSteamFarm {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
string envPath = Environment.GetEnvironmentVariable(SharedInfo.EnvironmentVariablePath);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(envPath)) {
|
||||||
|
HandlePathArgument(envPath);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
ASF.ArchiLogger.LogGenericException(e);
|
||||||
|
}
|
||||||
|
|
||||||
bool pathNext = false;
|
bool pathNext = false;
|
||||||
|
|
||||||
foreach (string arg in args) {
|
foreach (string arg in args) {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace ArchiSteamFarm {
|
|||||||
internal const string DatabaseExtension = ".db";
|
internal const string DatabaseExtension = ".db";
|
||||||
internal const string DebugDirectory = "debug";
|
internal const string DebugDirectory = "debug";
|
||||||
internal const string EnvironmentVariableCryptKey = ASF + "_CRYPTKEY";
|
internal const string EnvironmentVariableCryptKey = ASF + "_CRYPTKEY";
|
||||||
|
internal const string EnvironmentVariablePath = ASF + "_PATH";
|
||||||
internal const string GithubReleaseURL = "https://api.github.com/repos/" + GithubRepo + "/releases"; // GitHub API is HTTPS only
|
internal const string GithubReleaseURL = "https://api.github.com/repos/" + GithubRepo + "/releases"; // GitHub API is HTTPS only
|
||||||
internal const string GithubRepo = "JustArchiNET/" + AssemblyName;
|
internal const string GithubRepo = "JustArchiNET/" + AssemblyName;
|
||||||
internal const string GlobalConfigFileName = ASF + ConfigExtension;
|
internal const string GlobalConfigFileName = ASF + ConfigExtension;
|
||||||
|
|||||||
Reference in New Issue
Block a user