mirror of
https://github.com/ppy/osu
synced 2025-02-15 17:47:28 +00:00
Update to be in line with framework changes
This commit is contained in:
parent
4a425b5c3e
commit
51c5d0aec7
@ -467,7 +467,7 @@ namespace osu.Game.Database
|
||||
using (var outputStream = exportStorage.GetStream(filename, FileAccess.Write, FileMode.Create))
|
||||
ExportModelTo(retrievedItem, outputStream);
|
||||
|
||||
exportStorage.ShowFileInNativeExplorer(filename);
|
||||
exportStorage.PresentFileExternally(filename);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -135,7 +135,7 @@ namespace osu.Game.Graphics
|
||||
Text = $"{fileName} saved!",
|
||||
Activated = () =>
|
||||
{
|
||||
storage.ShowFileInNativeExplorer(fileName);
|
||||
storage.PresentFileExternally(fileName);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
@ -70,9 +70,9 @@ namespace osu.Game.IO
|
||||
public override Stream GetStream(string path, FileAccess access = FileAccess.Read, FileMode mode = FileMode.OpenOrCreate) =>
|
||||
UnderlyingStorage.GetStream(MutatePath(path), access, mode);
|
||||
|
||||
public override void OpenPathInNativeExplorer(string path) => UnderlyingStorage.OpenPathInNativeExplorer(MutatePath(path));
|
||||
public override void OpenFileExternally(string filename) => UnderlyingStorage.OpenFileExternally(MutatePath(filename));
|
||||
|
||||
public override void ShowFileInNativeExplorer(string filename) => UnderlyingStorage.ShowFileInNativeExplorer(MutatePath(filename));
|
||||
public override void PresentFileExternally(string filename) => UnderlyingStorage.PresentFileExternally(MutatePath(filename));
|
||||
|
||||
public override Storage GetStorageForDirectory(string path)
|
||||
{
|
||||
|
@ -921,7 +921,7 @@ namespace osu.Game
|
||||
Text = "Subsequent messages have been logged. Click to view log files.",
|
||||
Activated = () =>
|
||||
{
|
||||
Storage.GetStorageForDirectory(@"logs").ShowFileInNativeExplorer(logFile);
|
||||
Storage.GetStorageForDirectory(@"logs").PresentFileExternally(logFile);
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
Add(new SettingsButton
|
||||
{
|
||||
Text = GeneralSettingsStrings.OpenOsuFolder,
|
||||
Action = storage.OpenInNativeExplorer,
|
||||
Action = storage.PresentExternally,
|
||||
});
|
||||
|
||||
Add(new SettingsButton
|
||||
|
Loading…
Reference in New Issue
Block a user