summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2020-04-28 12:35:05 -0400
committerGitHub <noreply@github.com>2020-04-28 12:35:05 -0400
commit165c2e30178905baba4854dc54a7dc063e8564b6 (patch)
tree6deab3fd60dfc15bdd0a383617f97a49d4ffee5c /Source
parent401b582b401b3e767f7422fa8d4fd2e7c7eabc39 (diff)
parent95a089749119d4ff18e10a5cd3b29b6b1bd07986 (diff)
Merge pull request #8772 from JosJuice/create-backup-dir
Core: Call CreateFullPath before using Backup directory
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/WiiRoot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/WiiRoot.cpp b/Source/Core/Core/WiiRoot.cpp
index 3b7a17ab97..4096504867 100644
--- a/Source/Core/Core/WiiRoot.cpp
+++ b/Source/Core/Core/WiiRoot.cpp
@@ -39,6 +39,8 @@ static bool CopyBackupFile(const std::string& path_from, const std::string& path
if (!File::Exists(path_from))
return false;
+ File::CreateFullPath(path_to);
+
return File::Copy(path_from, path_to);
}