mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 00:59:18 +01:00
Don't go to mount point for free space check (#450)
This commit is contained in:
parent
a40b226e00
commit
2f86622a68
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user