1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 20:24:45 +08:00

Fix broken condition

This commit is contained in:
Bartłomiej Dach
2022-12-28 22:18:27 +01:00
Unverified
parent 8d79fa93ac
commit 49b0ec9ddb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace osu.Game.IO
public static bool CheckAvailability(string testDestinationPath, string testSourcePath)
{
// TODO: Add macOS support for hardlinks.
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows || RuntimeInfo.OS != RuntimeInfo.Platform.Linux)
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows && RuntimeInfo.OS != RuntimeInfo.Platform.Linux)
return false;
const string test_filename = "_hard_link_test";
@@ -132,7 +132,7 @@ namespace osu.Game.Overlays.FirstRunSetup
copyInformation.AddLink("Learn more about how \"hard links\" work", LinkAction.OpenWiki, @"Client/Release_stream/Lazer/File_storage#via-hard-links");
}
else if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows || RuntimeInfo.OS != RuntimeInfo.Platform.Linux)
else if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows && RuntimeInfo.OS != RuntimeInfo.Platform.Linux)
copyInformation.Text = "Lightweight linking of files is not supported on your operating system yet, so a copy of all files will be made during import.";
else
{