From 2f86622a68f2d95d903ad729a587a1eb32db6c96 Mon Sep 17 00:00:00 2001 From: Tillsunset <35825944+Tillsunset@users.noreply.github.com> Date: Fri, 4 Nov 2022 08:34:32 -0500 Subject: [PATCH] Don't go to mount point for free space check (#450) --- src/gui/GameUpdateWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/GameUpdateWindow.cpp b/src/gui/GameUpdateWindow.cpp index bf4cd49a..6471d847 100644 --- a/src/gui/GameUpdateWindow.cpp +++ b/src/gui/GameUpdateWindow.cpp @@ -133,7 +133,7 @@ bool GameUpdateWindow::ParseUpdate(const fs::path& metaPath) // checking size is buggy on Wine (on Steam Deck this would return values too small to install bigger updates) - we therefore skip this step if(!IsRunningInWine()) { - const fs::space_info targetSpace = fs::space(target_location.root_path()); + const fs::space_info targetSpace = fs::space(target_location); if (targetSpace.free <= m_required_size) { auto string = wxStringFormat(_("Not enough space available.\nRequired: {0} MB\nAvailable: {1} MB"), L"%lld %lld", (m_required_size / 1024 / 1024), (targetSpace.free / 1024 / 1024));