Avoid a couple of unnecessary Exists checks

This commit is contained in:
Henrik Rydgård committed 2024-11-28 15:02:26 +01:00
1 parent 98780ba603
commit 3d960d23ea
2 files changed
+5 -4

No files matched your search

+1 -3
View File
@@ -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() {