Wx: Add check for resources directory before starting

This commit is contained in:
Connor McLaughlin 2021-11-06 13:30:10 +10:00 committed by refractionpcsx2
parent c4084b4162
commit c203a09435
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,14 @@ void Pcsx2App::DetectCpuAndUserMode()
#endif
EstablishAppUserMode();
// Check that the resources directory exists and contains our data files.
if (!EmuFolders::Resources.Exists())
{
throw Exception::RuntimeError()
.SetDiagMsg(L"Resources directory does not exist.")
.SetUserMsg(_("Resources directory does not exist. Your installation is incomplete."));
}
}
void Pcsx2App::OpenMainFrame()