RuntimeCompatibility -> Compatibility

This commit is contained in:
JustArchi
2021-05-08 01:43:08 +02:00
parent e60b54e402
commit d21d2473fe
35 changed files with 46 additions and 46 deletions

View File

@@ -351,7 +351,7 @@ namespace ArchiSteamFarm.Storage {
GlobalConfig? globalConfig;
try {
string json = await RuntimeCompatibility.File.ReadAllTextAsync(filePath).ConfigureAwait(false);
string json = await Compatibility.File.ReadAllTextAsync(filePath).ConfigureAwait(false);
if (string.IsNullOrEmpty(json)) {
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsEmpty, nameof(json)));
@@ -400,7 +400,7 @@ namespace ArchiSteamFarm.Storage {
await WriteSemaphore.WaitAsync().ConfigureAwait(false);
try {
await RuntimeCompatibility.File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
await Compatibility.File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
if (File.Exists(filePath)) {
File.Replace(newFilePath, filePath, null);

View File

@@ -20,7 +20,7 @@
// limitations under the License.
#if NETFRAMEWORK
using ArchiSteamFarm.RuntimeCompatibility;
using ArchiSteamFarm.Compatibility;
using File = System.IO.File;
#else
using System.IO;
@@ -138,7 +138,7 @@ namespace ArchiSteamFarm.Storage {
GlobalDatabase? globalDatabase;
try {
string json = await RuntimeCompatibility.File.ReadAllTextAsync(filePath).ConfigureAwait(false);
string json = await Compatibility.File.ReadAllTextAsync(filePath).ConfigureAwait(false);
if (string.IsNullOrEmpty(json)) {
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsEmpty, nameof(json)));