Created a minor version number

This commit is contained in:
MysterD 2022-04-23 15:55:26 -07:00
parent 41aac2a3c4
commit 26b3ec966c
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,6 @@ static char sVersionString[MAX_VERSION_LENGTH] = { 0 };
#endif
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;
}

View File

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