overlaytopleft/games-fps/gzdoom/files/0018-indicate-in-the-startup-window-title-when-GZDoom-is-.patch

41 lines
1.1 KiB
Diff

From f759dd3d5cb849f713314769c56d36f33375f969 Mon Sep 17 00:00:00 2001
From: Rachael Alexanderson <madame-rachelle@users.noreply.github.com>
Date: Tue, 17 Jan 2023 02:35:42 -0500
Subject: [PATCH 18/51] - indicate in the startup window title when GZDoom is
compiled for ARM64 Windows
---
src/common/platform/win32/i_main.cpp | 2 ++
src/common/platform/win32/i_mainwindow.cpp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/common/platform/win32/i_main.cpp b/src/common/platform/win32/i_main.cpp
index f153a1dac..c28a3ff4b 100644
--- a/src/common/platform/win32/i_main.cpp
+++ b/src/common/platform/win32/i_main.cpp
@@ -85,6 +85,8 @@
// The main window's title.
#ifdef _M_X64
#define X64 " 64-bit"
+#elif _M_ARM64
+#define X64 " ARM-64"
#else
#define X64 ""
#endif
diff --git a/src/common/platform/win32/i_mainwindow.cpp b/src/common/platform/win32/i_mainwindow.cpp
index 3395ec430..5b246e457 100644
--- a/src/common/platform/win32/i_mainwindow.cpp
+++ b/src/common/platform/win32/i_mainwindow.cpp
@@ -17,6 +17,8 @@
#ifdef _M_X64
#define X64 " 64-bit"
+#elif _M_ARM64
+#define X64 " ARM-64"
#else
#define X64 ""
#endif
--
2.39.3