mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Fix linux console
This commit is contained in:
@@ -37,10 +37,16 @@ namespace ArchiSteamFarm {
|
||||
|
||||
private static Mutex SingleInstance;
|
||||
|
||||
internal static void CoreInit() {
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||
Console.OutputEncoding = Encoding.Unicode;
|
||||
|
||||
DisableQuickEditMode();
|
||||
}
|
||||
}
|
||||
|
||||
internal static void Init(bool systemRequired, GlobalConfig.EOptimizationMode optimizationMode) {
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||
DisableQuickEditMode();
|
||||
|
||||
if (systemRequired) {
|
||||
KeepWindowsSystemActive();
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
private static async Task InitASF(IReadOnlyCollection<string> args) {
|
||||
Console.OutputEncoding = Encoding.Unicode;
|
||||
OS.CoreInit();
|
||||
|
||||
string programIdentifier = SharedInfo.PublicIdentifier + " V" + SharedInfo.Version + " (" + SharedInfo.BuildInfo.Variant + "/" + SharedInfo.ModuleVersion + " | " + OS.Variant + ")";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user