mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix error writing config on first launch
This commit is contained in:
parent
15b91fb6a4
commit
905e573520
|
@ -90,8 +90,14 @@ bool CommonHost::InitializeCriticalFolders()
|
||||||
|
|
||||||
// allow SetDataDirectory() to change settings directory (if we want to split config later on)
|
// allow SetDataDirectory() to change settings directory (if we want to split config later on)
|
||||||
if (EmuFolders::Settings.empty())
|
if (EmuFolders::Settings.empty())
|
||||||
|
{
|
||||||
EmuFolders::Settings = Path::Combine(EmuFolders::DataRoot, "inis");
|
EmuFolders::Settings = Path::Combine(EmuFolders::DataRoot, "inis");
|
||||||
|
|
||||||
|
// Create settings directory if it doesn't exist. If we're not using portable mode, it won't.
|
||||||
|
if (!FileSystem::DirectoryExists(EmuFolders::Settings.c_str()))
|
||||||
|
FileSystem::CreateDirectoryPath(EmuFolders::Settings.c_str(), false);
|
||||||
|
}
|
||||||
|
|
||||||
// Write crash dumps to the data directory, since that'll be accessible for certain.
|
// Write crash dumps to the data directory, since that'll be accessible for certain.
|
||||||
CrashHandler::SetWriteDirectory(EmuFolders::DataRoot);
|
CrashHandler::SetWriteDirectory(EmuFolders::DataRoot);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue