From 9db485b98d035f07f9a6ea2c5019b135453d8342 Mon Sep 17 00:00:00 2001 From: vnctdj Date: Wed, 9 May 2018 21:23:04 +0200 Subject: [PATCH] Allow showing version only for Qt --- Qt/QtMain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp index 5112c20435..395af8c5bb 100644 --- a/Qt/QtMain.cpp +++ b/Qt/QtMain.cpp @@ -491,6 +491,13 @@ Q_DECL_EXPORT #endif int main(int argc, char *argv[]) { + for (int i = 1; i < argc; i++) { + if (!strcmp(argv[i], "--version")) { + printf("%s\n", PPSSPP_GIT_VERSION); + return 0; + } + } + glslang::InitializeProcess(); #if defined(Q_OS_LINUX) QApplication::setAttribute(Qt::AA_X11InitThreads, true);