mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
HW/WiiSave: Fix reversed condition in WriteFiles
This didn't make any sense, as it would only attempt to create the directory if it already existed, and would simply fail if it didn't exist.
This commit is contained in:
parent
6730748309
commit
f4eb4fab08
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ public:
|
|||
else if (file.type == SaveFile::Type::Directory)
|
||||
{
|
||||
const FS::Result<FS::Metadata> meta = m_fs->GetMetadata(*m_uid, *m_gid, path);
|
||||
if (!meta || meta->is_file)
|
||||
if (meta && meta->is_file)
|
||||
return false;
|
||||
|
||||
const FS::ResultCode result = m_fs->CreateDirectory(*m_uid, *m_gid, path, 0, modes);
|
||||
|
|
Loading…
Add table
Reference in a new issue