Avoid a couple of unnecessary Exists checks

This commit is contained in:
Henrik Rydgård
2024-11-28 15:02:26 +01:00
parent 98780ba603
commit 3d960d23ea
2 changed files with 5 additions and 4 deletions
+4 -1
View File
@@ -53,6 +53,7 @@
#include "Core/ConfigValues.h"
#include "Core/Loaders.h"
#include "Core/KeyMap.h"
#include "Core/System.h"
#include "Core/HLE/sceUtility.h"
#include "Core/Instance.h"
#include "GPU/Common/FramebufferManagerCommon.h"
@@ -1679,7 +1680,9 @@ const Path Config::FindConfigFile(const std::string &baseFilename) {
Path parent = filename.NavigateUp();
// We try to create the path and ignore if it fails (already exists).
File::CreateFullPath(parent);
if (parent != GetSysDirectory(DIRECTORY_SYSTEM)) {
File::CreateFullPath(parent);
}
return filename;
}