Fix broken condition

This commit is contained in:
Bartłomiej Dach 2022-12-28 22:18:27 +01:00
parent 8d79fa93ac
commit 49b0ec9ddb
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.IO
public static bool CheckAvailability(string testDestinationPath, string testSourcePath) public static bool CheckAvailability(string testDestinationPath, string testSourcePath)
{ {
// TODO: Add macOS support for hardlinks. // 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; return false;
const string test_filename = "_hard_link_test"; const string test_filename = "_hard_link_test";

View File

@ -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"); 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."; 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 else
{ {