Project64: In FixDir check if directory exists before trying to create it
This commit is contained in:
parent
d6a148696c
commit
727f730f79
|
@ -227,22 +227,21 @@ void InitializeLog ( void)
|
|||
|
||||
void FixDirectories ( void )
|
||||
{
|
||||
|
||||
CPath Directory(CPath::MODULE_DIRECTORY);
|
||||
Directory.AppendDirectory(_T("Config"));
|
||||
Directory.CreateDirectory();
|
||||
if (!Directory.DirectoryExists()) Directory.CreateDirectory();
|
||||
|
||||
Directory.UpDirectory();
|
||||
Directory.AppendDirectory("Logs");
|
||||
Directory.CreateDirectory();
|
||||
if (!Directory.DirectoryExists()) Directory.CreateDirectory();
|
||||
|
||||
Directory.UpDirectory();
|
||||
Directory.AppendDirectory("Save");
|
||||
Directory.CreateDirectory();
|
||||
if (!Directory.DirectoryExists()) Directory.CreateDirectory();
|
||||
|
||||
Directory.UpDirectory();
|
||||
Directory.AppendDirectory("Screenshots");
|
||||
Directory.CreateDirectory();
|
||||
if (!Directory.DirectoryExists()) Directory.CreateDirectory();
|
||||
}
|
||||
|
||||
bool TerminatedExistingEmu()
|
||||
|
|
Loading…
Reference in New Issue