mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-07-14 18:31:52 +00:00
19 lines
643 B
C
19 lines
643 B
C
#include <stdio.h>
|
|
#include "version.h"
|
|
#include "types.h"
|
|
|
|
static char sVersionString[MAX_VERSION_LENGTH] = { 0 };
|
|
static char sLocalVersionString[MAX_LOCAL_VERSION_LENGTH] = { 0 };
|
|
|
|
char* get_version(void) {
|
|
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s %d.%d", VERSION_TEXT, VERSION_NUMBER, MINOR_VERSION_NUMBER);
|
|
return sVersionString;
|
|
}
|
|
|
|
char* get_version_local(void) {
|
|
if (PATCH_VERSION_NUMBER <= 0) {
|
|
return get_version();
|
|
}
|
|
snprintf(sLocalVersionString, MAX_LOCAL_VERSION_LENGTH, "%s %d.%d.%d", VERSION_TEXT, VERSION_NUMBER, MINOR_VERSION_NUMBER, PATCH_VERSION_NUMBER);
|
|
return sLocalVersionString;
|
|
}
|