From 1d4bf6e8b1208383021e22f61d859e9b721c482d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Thu, 2 Apr 2026 17:36:40 +0300 Subject: NOISSUE reformat MeshMC to new clang format rules and fixed macOS portability issue and java find issue Signed-off-by: Mehmet Samet Duman --- launcher/java/JavaUtils.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'launcher/java/JavaUtils.h') diff --git a/launcher/java/JavaUtils.h b/launcher/java/JavaUtils.h index 503ab6c415..cfd2b9558d 100644 --- a/launcher/java/JavaUtils.h +++ b/launcher/java/JavaUtils.h @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * + * * This file incorporates work covered by the following copyright and * permission notice: * @@ -51,15 +51,21 @@ QProcessEnvironment CleanEnviroment(); class JavaUtils : public QObject { - Q_OBJECT -public: - JavaUtils(); + Q_OBJECT + public: + JavaUtils(); + + static QString managedJavaRoot(); - JavaInstallPtr MakeJavaPtr(QString path, QString id = "unknown", QString arch = "unknown"); - QList FindJavaPaths(); - JavaInstallPtr GetDefaultJava(); + JavaInstallPtr MakeJavaPtr(QString path, QString id = "unknown", + QString arch = "unknown"); + QList FindJavaPaths(); + JavaInstallPtr GetDefaultJava(); #ifdef Q_OS_WIN - QList FindJavaFromRegistryKey(DWORD keyType, QString keyName, QString keyJavaDir, QString subkeySuffix = ""); + QList FindJavaFromRegistryKey(DWORD keyType, + QString keyName, + QString keyJavaDir, + QString subkeySuffix = ""); #endif }; -- cgit 0.0.5-2-1-g0f52