From: Holger Schemel Date: Mon, 29 Jun 2020 23:07:10 +0000 (+0200) Subject: added CPU architecture (32/64 bit) to version info screen X-Git-Tag: 4.2.0.0~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7ec00ca486910f4bbacf11171e67ef50979f155d;p=rocksndiamonds.git added CPU architecture (32/64 bit) to version info screen --- diff --git a/src/libgame/platform.h b/src/libgame/platform.h index 8b13dc97..d5b15580 100644 --- a/src/libgame/platform.h +++ b/src/libgame/platform.h @@ -154,6 +154,19 @@ #endif +// ============================================================================ +// define additional platform keywords for CPU architecture +// ============================================================================ + +#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) +#define PLATFORM_64_BIT +#define PLATFORM_XX_BIT_STRING "64-bit" +#else +#define PLATFORM_32_BIT +#define PLATFORM_XX_BIT_STRING "32-bit" +#endif + + // ============================================================================ // define additional target keywords // ============================================================================ diff --git a/src/screens.c b/src/screens.c index 8632992e..91128464 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3684,7 +3684,9 @@ static void DrawInfoScreen_Version(void) } DrawTextF(xstart1, ystart, font_head, "Platform"); - DrawTextF(xstart2, ystart, font_text, PLATFORM_STRING); + DrawTextF(xstart2, ystart, font_text, "%s (%s)", + PLATFORM_STRING, + PLATFORM_XX_BIT_STRING); ystart += ystep_line; DrawTextF(xstart1, ystart, font_head, "Target");