Enforce net472 code contracts

This commit is contained in:
JustArchi
2018-06-11 01:24:54 +02:00
parent b37530c0ff
commit a2a693ccd3
5 changed files with 48 additions and 16 deletions

View File

@@ -137,6 +137,11 @@ namespace ArchiSteamFarm {
}
string executableName = Path.GetFileNameWithoutExtension(ProcessFileName);
if (string.IsNullOrEmpty(executableName)) {
ASF.ArchiLogger.LogNullError(nameof(executableName));
return;
}
IEnumerable<string> arguments = Environment.GetCommandLineArgs().Skip(executableName.Equals(SharedInfo.AssemblyName) ? 1 : 0);
try {