mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07: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
@ -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…
Reference in New Issue
Block a user