diff options
author | Petr Mrázek <peterix@gmail.com> | 2022-04-06 22:45:57 +0200 |
---|---|---|
committer | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2022-04-07 18:28:27 +0200 |
commit | 566a83b245b347e3bef72153c2a68dbbf5233ce5 (patch) | |
tree | 375a71e4e7094efd57aa16768bca79b148a2d90b /launcher/LaunchController.cpp | |
parent | cc5261051fcc5ce68177065d9d56fe79c28cbf7e (diff) | |
download | PrismLauncher-566a83b245b347e3bef72153c2a68dbbf5233ce5.tar.gz PrismLauncher-566a83b245b347e3bef72153c2a68dbbf5233ce5.tar.bz2 PrismLauncher-566a83b245b347e3bef72153c2a68dbbf5233ce5.zip |
NOISSUE prevent -version being passed to the JRE
We want specific JREs, always, not something that is magically resolved.
This counteracts some really bad advice recently being spread on reddit.
Diffstat (limited to 'launcher/LaunchController.cpp')
-rw-r--r-- | launcher/LaunchController.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 792d8381..cc1228f5 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -71,7 +71,10 @@ void LaunchController::executeTask() return; } - JavaCommon::checkJVMArgs(m_instance->settings()->get("JvmArgs").toString(), m_parentWidget); + if(!JavaCommon::checkJVMArgs(m_instance->settings()->get("JvmArgs").toString(), m_parentWidget)) { + emitFailed(tr("Invalid Java arguments specified. Please fix this first.")); + return; + } login(); } |