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:
Techjar 2018-11-13 17:42:12 -05:00
parent 6730748309
commit f4eb4fab08

View File

@ -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);