From 520d09c28064dccca20fb6c03945ef4410a32202 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Wed, 11 Dec 2024 23:56:05 -0500 Subject: [PATCH] New window title --- src/pc/network/version.h | 17 ++++++++++------- src/pc/pc_main.h | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/pc/network/version.h b/src/pc/network/version.h index 36e242938..b88b0f9b1 100644 --- a/src/pc/network/version.h +++ b/src/pc/network/version.h @@ -9,21 +9,24 @@ #define MINOR_VERSION_NUMBER 0 #if defined(VERSION_JP) - #define VERSION_REGION "JP" +#define VERSION_REGION "JP" #elif defined(VERSION_EU) - #define VERSION_REGION "EU" +#define VERSION_REGION "EU" #elif defined(VERSION_SH) - #define VERSION_REGION "SH" +#define VERSION_REGION "SH" #else - #define VERSION_REGION "US" +#define VERSION_REGION "US" #endif #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) - #define GAME_NAME "sm64coopdx-intl" +#define GAME_NAME "sm64coopdx-intl" +#define WINDOW_NAME "Super Mario 64 Coop Deluxe (INTL)" #else - #define GAME_NAME "sm64coopdx" +#define GAME_NAME "sm64coopdx" +#define WINDOW_NAME "Super Mario 64 Coop Deluxe" #endif #define MAX_VERSION_LENGTH 32 diff --git a/src/pc/pc_main.h b/src/pc/pc_main.h index 92b677017..6ad762d84 100644 --- a/src/pc/pc_main.h +++ b/src/pc/pc_main.h @@ -54,9 +54,9 @@ extern "C" { #endif #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 -#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 #define AT_STARTUP __attribute__((constructor))