From 3f4bfddafc63fdedd34a4d727a4907ac730eb841 Mon Sep 17 00:00:00 2001 From: vnctdj Date: Wed, 9 May 2018 21:22:47 +0200 Subject: [PATCH] Allow showing version only for SDL --- SDL/SDLMain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 5e814d05dc..6517748c58 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -448,6 +448,13 @@ static void EmuThreadJoin() { #undef main #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 PPSSPP_PLATFORM(RPI)