From 72437ae3570e71f89604c58d93d63918f8733e62 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 1 Sep 2020 15:37:32 -0700 Subject: [PATCH] Define BETAVERSION as a suffix to the version string --- src/doomdef.h | 4 ++++ src/version.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/doomdef.h b/src/doomdef.h index 24898bdf6..b1ce0b79c 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -130,7 +130,11 @@ extern char logfilename[1024]; // most interface strings are ignored in development mode. // we use comprevision and compbranch instead. #else +#ifdef BETAVERSION +#define VERSIONSTRING "v"SRB2VERSION" "BETAVERSION +#else #define VERSIONSTRING "v"SRB2VERSION +#endif // Hey! If you change this, add 1 to the MODVERSION below! // Otherwise we can't force updates! #endif diff --git a/src/version.h b/src/version.h index 31cf85bdc..dce681669 100644 --- a/src/version.h +++ b/src/version.h @@ -10,3 +10,6 @@ // Only set it higher, not lower, obviously. // Note that we use this to help keep internal testing in check; this is why v2.2.0 is not version "1". #define MODVERSION 47 + +// Define this as a prerelease version suffix +//#define BETAVERSION "RC1"