mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-03-26 04:51:37 +00:00
25 lines
No EOL
762 B
C
25 lines
No EOL
762 B
C
#include <stdio.h>
|
|
#include "version.h"
|
|
#include "types.h"
|
|
|
|
static char sVersionString[MAX_VERSION_LENGTH] = { 0 };
|
|
|
|
const char* get_version(void) {
|
|
#if defined(VERSION_US)
|
|
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s", SM64COOPDX_VERSION);
|
|
#else
|
|
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s %s", SM64COOPDX_VERSION, VERSION_REGION);
|
|
#endif // VERSION_US
|
|
return sVersionString;
|
|
}
|
|
|
|
#ifdef COMPILE_TIME
|
|
const char* get_version_with_build_date(void) {
|
|
#if defined(VERSION_US)
|
|
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s, %s", SM64COOPDX_VERSION, COMPILE_TIME);
|
|
#else
|
|
snprintf(sVersionString, MAX_VERSION_LENGTH, "%s %s, %s", SM64COOPDX_VERSION, VERSION_REGION, COMPILE_TIME);
|
|
#endif // VERSION_US
|
|
return sVersionString;
|
|
}
|
|
#endif |