Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions builder/HookshotBuilder/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -955,10 +955,12 @@ async Task ShowStorageUse()
StorageRow.Visibility = Visibility.Collapsed;
var (total, freeable) = await Task.Run(Storage.Measure);
if (total < 100L << 20) return;
// (both places when the build files are in a folder the player chose: the total counts both)
var where = Storage.WorkChosen ? $"{Storage.Base} and {Storage.Work}" : Storage.Base;
StorageNote.Text = freeable >= 100L << 20
? $"Hookshot Builder keeps {Storage.Gb(total)} on this PC ({Storage.Base}). {Storage.Gb(freeable)} of it only makes the next " +
? $"Hookshot Builder keeps {Storage.Gb(total)} on this PC ({where}). {Storage.Gb(freeable)} of it only makes the next " +
"update quicker and can be freed: your game keeps playing, and the next update then takes about as long as this build."
: $"Hookshot Builder keeps {Storage.Gb(total)} on this PC ({Storage.Base}): the builder itself.";
: $"Hookshot Builder keeps {Storage.Gb(total)} on this PC ({where}): the builder itself.";
FreeButton.Visibility = freeable >= 100L << 20 ? Visibility.Visible : Visibility.Collapsed;
FreeButton.IsEnabled = true;
FreeButton.Content = "Free up space";
Expand Down Expand Up @@ -989,7 +991,7 @@ async void FreeSpace(object sender, RoutedEventArgs e)
}

void ShowStorage(object sender, RoutedEventArgs e) =>
Process.Start(new ProcessStartInfo("explorer.exe", $"\"{Storage.Base}\"") { UseShellExecute = true });
Process.Start(new ProcessStartInfo("explorer.exe", $"\"{(Storage.WorkChosen ? Storage.Work : Storage.Base)}\"") { UseShellExecute = true }); // (the bigger one)

void ShortcutsChanged(object sender, RoutedEventArgs e)
{
Expand Down
Loading