Created a minor version number

This commit is contained in:
MysterD 2022-04-23 15:55:26 -07:00
parent 36f2b2218d
commit 5983285e4b
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,6 @@ static char sVersionString[MAX_VERSION_LENGTH] = { 0 };
#endif #endif
char* get_version(void) { char* get_version(void) {
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s%d", VERSION_TEXT, VERSION_NUMBER); snprintf(sVersionString, MAX_VERSION_LENGTH, "%s%d.%d", VERSION_TEXT, VERSION_NUMBER, MINOR_VERSION_NUMBER);
return sVersionString; return sVersionString;
} }

View file

@ -3,6 +3,7 @@
#define UNSTABLE_BRANCH #define UNSTABLE_BRANCH
#define VERSION_NUMBER 25 #define VERSION_NUMBER 25
#define MINOR_VERSION_NUMBER 1
#define MAX_VERSION_LENGTH 10 #define MAX_VERSION_LENGTH 10
char* get_version(void); char* get_version(void);