mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Log maxfiles to file and stderr on *NIX
This commit is contained in:
parent
3571e6ef85
commit
37f24d8c1c
3 changed files with 28 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <QDirIterator>
|
||||
#include <QFileInfo>
|
||||
#include <QSound>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <clocale>
|
||||
|
||||
|
@ -105,6 +106,17 @@ bool gui_application::Init()
|
|||
welcome->exec();
|
||||
}
|
||||
|
||||
// Check maxfiles
|
||||
if (utils::get_maxfiles() < 4096)
|
||||
{
|
||||
QMessageBox::warning(nullptr,
|
||||
tr("Warning"),
|
||||
tr("The current limit of maximum file descriptors is too low.\n"
|
||||
"Some games will crash.\n"
|
||||
"\n"
|
||||
"Please increase the limit before running RPCS3."));
|
||||
}
|
||||
|
||||
if (m_main_window && !m_main_window->Init(m_with_cli_boot))
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue