aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudvig Strigeus2002-02-03 20:41:23 +0000
committerLudvig Strigeus2002-02-03 20:41:23 +0000
commit87631ebe7e1af015922227d48e52fc828b946b83 (patch)
treead6586449aeff73cc04c997aac2e0765ab8f201f
parenta4aae7dc27be179705bacbf29886f43f8733e18d (diff)
downloadscummvm-rg350-87631ebe7e1af015922227d48e52fc828b946b83.tar.gz
scummvm-rg350-87631ebe7e1af015922227d48e52fc828b946b83.tar.bz2
scummvm-rg350-87631ebe7e1af015922227d48e52fc828b946b83.zip
added -v command line flag that prints the scummvm version
svn-id: r3565
-rw-r--r--scumm.h3
-rw-r--r--scummvm.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/scumm.h b/scumm.h
index 1d32fedf78..c76cd88f27 100644
--- a/scumm.h
+++ b/scumm.h
@@ -21,6 +21,9 @@
#include "scummsys.h"
+
+#define SCUMMVM_VERSION "0.1.0 devel"
+
#define SWAP(a,b) do{int tmp=a; a=b; b=tmp; } while(0)
#define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
diff --git a/scummvm.cpp b/scummvm.cpp
index 75e22bd511..a6fe62322b 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -379,6 +379,9 @@ void Scumm::parseCommandLine(int argc, char **argv) {
case 'f':
_fullScreen = true;
break;
+ case 'v':
+ printf("ScummVM " SCUMMVM_VERSION "\nBuilt on " __TIMESTAMP__ "\n");
+ exit(1);
default:
ShowHelpAndExit:;
printf(