mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Fix checking space using non existing folder (#503)
This commit is contained in:
parent
57c8dec335
commit
8f1ee9e5aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// 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())
|
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)
|
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));
|
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…
Add table
Add a link
Reference in a new issue