Merge pull request #186 from theglitch76-forks/develop
Enable WSL support
This commit is contained in:
commit
e2c2a38005
@ -192,27 +192,6 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
||||
#endif
|
||||
startTime = QDateTime::currentDateTime();
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
{
|
||||
QFile osrelease("/proc/sys/kernel/osrelease");
|
||||
if (osrelease.open(QFile::ReadOnly | QFile::Text)) {
|
||||
QTextStream in(&osrelease);
|
||||
auto contents = in.readAll();
|
||||
if(
|
||||
contents.contains("WSL", Qt::CaseInsensitive) ||
|
||||
contents.contains("Microsoft", Qt::CaseInsensitive)
|
||||
) {
|
||||
showFatalErrorMessage(
|
||||
"Unsupported system detected!",
|
||||
"Linux-on-Windows distributions are not supported.\n\n"
|
||||
"Please use the Windows binary when playing on Windows."
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Don't quit on hiding the last window
|
||||
this->setQuitOnLastWindowClosed(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user