mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-04 12:17:16 +00:00
Avoid a couple of unnecessary Exists checks
This commit is contained in:
parent
98780ba603
commit
3d960d23ea
@ -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;
|
||||
}
|
||||
|
||||
|
@ -838,10 +838,8 @@ static void InitMemstickDirectory() {
|
||||
// We're screwed anyway if we can't write to Documents, or can't detect it.
|
||||
if (!File::CreateEmptyFile(testFile))
|
||||
g_Config.memStickDirectory = myDocsPath;
|
||||
|
||||
// Clean up our mess.
|
||||
if (File::Exists(testFile))
|
||||
File::Delete(testFile);
|
||||
File::Delete(testFile);
|
||||
}
|
||||
|
||||
static void WinMainInit() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user