diff options
| author | Techjar <tecknojar@gmail.com> | 2018-11-13 17:42:12 -0500 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2018-11-19 06:37:09 -0500 |
| commit | f4eb4fab08be581dddf7253a128bebce10ec3019 (patch) | |
| tree | 8bd4915167fa698687cfad26ab2b9e36d229c115 /Source/Core | |
| parent | 673074830991e589e8b2ab39f890f3cce40993f6 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/WiiSave.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/WiiSave.cpp b/Source/Core/Core/HW/WiiSave.cpp index ddf9eb7f72..575f04a643 100644 --- a/Source/Core/Core/HW/WiiSave.cpp +++ b/Source/Core/Core/HW/WiiSave.cpp @@ -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); |
