From 8f1ee9e5aa82af86a7f41d6e5ac202145c5d051d Mon Sep 17 00:00:00 2001 From: SSimco <37044560+SSimco@users.noreply.github.com> Date: Fri, 18 Nov 2022 13:46:05 +0200 Subject: [PATCH] Fix checking space using non existing folder (#503) --- 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 6471d847..c16cc89c 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); + const fs::space_info targetSpace = fs::space(ActiveSettings::GetMlcPath()); 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));