mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
New window title
This commit is contained in:
parent
f7a48d23fe
commit
520d09c280
2 changed files with 12 additions and 9 deletions
|
|
@ -9,21 +9,24 @@
|
||||||
#define MINOR_VERSION_NUMBER 0
|
#define MINOR_VERSION_NUMBER 0
|
||||||
|
|
||||||
#if defined(VERSION_JP)
|
#if defined(VERSION_JP)
|
||||||
#define VERSION_REGION "JP"
|
#define VERSION_REGION "JP"
|
||||||
#elif defined(VERSION_EU)
|
#elif defined(VERSION_EU)
|
||||||
#define VERSION_REGION "EU"
|
#define VERSION_REGION "EU"
|
||||||
#elif defined(VERSION_SH)
|
#elif defined(VERSION_SH)
|
||||||
#define VERSION_REGION "SH"
|
#define VERSION_REGION "SH"
|
||||||
#else
|
#else
|
||||||
#define VERSION_REGION "US"
|
#define VERSION_REGION "US"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEVELOPMENT
|
#ifdef DEVELOPMENT
|
||||||
#define GAME_NAME "sm64coopdx-dev"
|
#define GAME_NAME "sm64coopdx-dev"
|
||||||
|
#define WINDOW_NAME "Super Mario 64 Coop Deluxe (DEV)"
|
||||||
#elif !defined(VERSION_US)
|
#elif !defined(VERSION_US)
|
||||||
#define GAME_NAME "sm64coopdx-intl"
|
#define GAME_NAME "sm64coopdx-intl"
|
||||||
|
#define WINDOW_NAME "Super Mario 64 Coop Deluxe (INTL)"
|
||||||
#else
|
#else
|
||||||
#define GAME_NAME "sm64coopdx"
|
#define GAME_NAME "sm64coopdx"
|
||||||
|
#define WINDOW_NAME "Super Mario 64 Coop Deluxe"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_VERSION_LENGTH 32
|
#define MAX_VERSION_LENGTH 32
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GIT_HASH
|
#ifdef GIT_HASH
|
||||||
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s, [%s]", GAME_NAME, get_version(), GIT_HASH); title; })
|
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s, [%s]", WINDOW_NAME, get_version(), GIT_HASH); title; })
|
||||||
#else
|
#else
|
||||||
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s", GAME_NAME, get_version()); title; })
|
#define TITLE ({ char title[96] = ""; snprintf(title, 96, "%s %s", WINDOW_NAME, get_version()); title; })
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define AT_STARTUP __attribute__((constructor))
|
#define AT_STARTUP __attribute__((constructor))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue