Allow showing version only for Qt

This commit is contained in:
vnctdj 2018-05-09 21:23:04 +02:00
parent 3f4bfddafc
commit 9db485b98d

View file

@ -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);