mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 00:20:50 +00:00
Implement support for mono (#806)
* Initial buggy mono support * Start building generic-netf variant * Fix CIs * Disable ILLink.Tasks for generic-netf * Make generic-netf *special* * Keep fixing Don't ask me why reverse order works, this is next-gen msbuild magic * Mono compat * Mono compat * Misc * Update to .NET Framework 4.7.2 * .NET 4.7.2 compat * Misc
This commit is contained in:
committed by
GitHub
parent
56d48ae210
commit
a515de5807
@@ -161,7 +161,7 @@ namespace ArchiSteamFarm {
|
||||
BotConfig botConfig;
|
||||
|
||||
try {
|
||||
botConfig = JsonConvert.DeserializeObject<BotConfig>(await File.ReadAllTextAsync(filePath).ConfigureAwait(false));
|
||||
botConfig = JsonConvert.DeserializeObject<BotConfig>(await RuntimeCompatibility.File.ReadAllTextAsync(filePath).ConfigureAwait(false));
|
||||
} catch (Exception e) {
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
return null;
|
||||
@@ -207,7 +207,7 @@ namespace ArchiSteamFarm {
|
||||
await WriteSemaphore.WaitAsync().ConfigureAwait(false);
|
||||
|
||||
try {
|
||||
await File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
|
||||
await RuntimeCompatibility.File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
|
||||
|
||||
if (File.Exists(filePath)) {
|
||||
File.Replace(newFilePath, filePath, null);
|
||||
|
||||
Reference in New Issue
Block a user