aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-02-22 08:23:57 +0100
committerGitHub <noreply@github.com>2022-02-22 08:23:57 +0100
commite2c2a380058262363f98660f4868a85a160ec546 (patch)
tree6e77e66e8bf404b130771b5f8fab4d8c2378fa95
parentaa4a6bb3be8eadb3cc6788c522166741e066cbe1 (diff)
parent8556ff5eac8a5a880896e954081e5c9ada224eaa (diff)
downloadPrismLauncher-e2c2a380058262363f98660f4868a85a160ec546.tar.gz
PrismLauncher-e2c2a380058262363f98660f4868a85a160ec546.tar.bz2
PrismLauncher-e2c2a380058262363f98660f4868a85a160ec546.zip
Merge pull request #186 from theglitch76-forks/develop
Enable WSL support
-rw-r--r--launcher/Application.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index e916dcf7..e33df252 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -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);