From 75bee8107b8f2d9d71ac1ab98853c019e688e273 Mon Sep 17 00:00:00 2001 From: CodeLikeCXK <44729188+CodeLikeCXK@users.noreply.github.com> Date: Tue, 23 Apr 2024 00:11:50 +0800 Subject: [PATCH 1/6] Create cmake-vs2022-arm64.bat --- neo/cmake-vs2022-arm64.bat | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 neo/cmake-vs2022-arm64.bat diff --git a/neo/cmake-vs2022-arm64.bat b/neo/cmake-vs2022-arm64.bat new file mode 100644 index 00000000..e945b70a --- /dev/null +++ b/neo/cmake-vs2022-arm64.bat @@ -0,0 +1,6 @@ +cd .. +del /s /q build +mkdir build +cd build +cmake -G "Visual Studio 17" -A arm64 -DUSE_INTRINSICS_SSE=OFF -DFFMPEG=OFF -DBINKDEC=ON -VULKAN=OFF ../neo +pause \ No newline at end of file From 99ff3656c128a578a4a8cb0e8080094f70578883 Mon Sep 17 00:00:00 2001 From: CodeLikeCXK <44729188+CodeLikeCXK@users.noreply.github.com> Date: Tue, 23 Apr 2024 00:22:51 +0800 Subject: [PATCH 2/6] Update cmake-vs2022-arm64.bat --- neo/cmake-vs2022-arm64.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/cmake-vs2022-arm64.bat b/neo/cmake-vs2022-arm64.bat index e945b70a..ba5b49d5 100644 --- a/neo/cmake-vs2022-arm64.bat +++ b/neo/cmake-vs2022-arm64.bat @@ -2,5 +2,5 @@ cd .. del /s /q build mkdir build cd build -cmake -G "Visual Studio 17" -A arm64 -DUSE_INTRINSICS_SSE=OFF -DFFMPEG=OFF -DBINKDEC=ON -VULKAN=OFF ../neo +cmake -G "Visual Studio 17" -A arm64 -DUSE_INTRINSICS_SSE=OFF VULKAN=OFF -DFFMPEG=OFF -DBINKDEC=ON ../neo pause \ No newline at end of file From 2c9d4e0b1487cbca9605abef025ce7d6388000ba Mon Sep 17 00:00:00 2001 From: Karin Date: Thu, 30 May 2024 20:19:26 +0800 Subject: [PATCH 3/6] Explicit font's position's type is signed char idFont::fontInfo_t::ascii should be not effect it. --- neo/renderer/Font.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/renderer/Font.h b/neo/renderer/Font.h index 56cae307..acd255dd 100644 --- a/neo/renderer/Font.h +++ b/neo/renderer/Font.h @@ -68,8 +68,8 @@ private: { byte width; // width of glyph in pixels byte height; // height of glyph in pixels - char top; // distance in pixels from the base line to the top of the glyph - char left; // distance in pixels from the pen to the left edge of the glyph + signed char top; // distance in pixels from the base line to the top of the glyph + signed char left; // distance in pixels from the pen to the left edge of the glyph byte xSkip; // x adjustment after rendering this glyph uint16 s; // x offset in image where glyph starts (in pixels) uint16 t; // y offset in image where glyph starts (in pixels) From bef28ab428ff3ec613275f5ed8c964247ace584f Mon Sep 17 00:00:00 2001 From: Karin Date: Thu, 30 May 2024 20:25:11 +0800 Subject: [PATCH 4/6] Make move type is signed char If as unsigned char, always move forward and right, and speed is faster. --- doomclassic/doom/d_ticcmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doomclassic/doom/d_ticcmd.h b/doomclassic/doom/d_ticcmd.h index 609c08ec..50b261d0 100644 --- a/doomclassic/doom/d_ticcmd.h +++ b/doomclassic/doom/d_ticcmd.h @@ -41,8 +41,8 @@ If you have questions concerning this license or the applicable additional terms // plus a checksum for internal state consistency. typedef struct { - char forwardmove; // *2048 for move - char sidemove; // *2048 for move + signed char forwardmove; // *2048 for move + signed char sidemove; // *2048 for move short angleturn; // <<16 for angle delta short consistancy; // checks for net game byte buttons; From d1c63f8821e5dad5aa1305adeb78edf3788ed3af Mon Sep 17 00:00:00 2001 From: Karin Date: Thu, 30 May 2024 20:27:52 +0800 Subject: [PATCH 5/6] Linux arm 32bits compile --- neo/idlib/sys/sys_defines.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo/idlib/sys/sys_defines.h b/neo/idlib/sys/sys_defines.h index f053d9ae..03569f80 100644 --- a/neo/idlib/sys/sys_defines.h +++ b/neo/idlib/sys/sys_defines.h @@ -130,6 +130,8 @@ If you have questions concerning this license or the applicable additional terms #define CPUSTRING "sparc" #elif defined(__loongarch64) #define CPUSTRING "loongarch64" + #elif defined(__arm__) + #define CPUSTRING "arm" #else #error unknown CPU #endif From 3a944086078453c75360d05eff721ad3fe6c947a Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Sun, 2 Jun 2024 16:11:19 +0200 Subject: [PATCH 6/6] Fixed typo in cmake-vs2022-arm64.bat --- neo/cmake-vs2019-arm64.bat | 6 ------ neo/cmake-vs2022-arm64.bat | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 neo/cmake-vs2019-arm64.bat diff --git a/neo/cmake-vs2019-arm64.bat b/neo/cmake-vs2019-arm64.bat deleted file mode 100644 index 31c11fc6..00000000 --- a/neo/cmake-vs2019-arm64.bat +++ /dev/null @@ -1,6 +0,0 @@ -cd .. -del /s /q build -mkdir build -cd build -cmake -G "Visual Studio 16" -A arm64 -DUSE_INTRINSICS_SSE=OFF -DFFMPEG=OFF -DBINKDEC=ON ../neo -pause \ No newline at end of file diff --git a/neo/cmake-vs2022-arm64.bat b/neo/cmake-vs2022-arm64.bat index ba5b49d5..5bb3bb16 100644 --- a/neo/cmake-vs2022-arm64.bat +++ b/neo/cmake-vs2022-arm64.bat @@ -2,5 +2,5 @@ cd .. del /s /q build mkdir build cd build -cmake -G "Visual Studio 17" -A arm64 -DUSE_INTRINSICS_SSE=OFF VULKAN=OFF -DFFMPEG=OFF -DBINKDEC=ON ../neo +cmake -G "Visual Studio 17" -A arm64 -DUSE_INTRINSICS_SSE=OFF -DVULKAN=OFF -DFFMPEG=OFF -DBINKDEC=ON ../neo pause \ No newline at end of file