Add armv7 and aarch64 detection in run_game.bat, see #4805

This commit is contained in:
Benau 2022-10-28 13:39:06 +08:00
parent d2a1144cf4
commit 2707234ada
1 changed files with 15 additions and 3 deletions

View File

@ -1,13 +1,25 @@
@echo off
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
if %OS%==32BIT (
if %PROCESSOR_ARCHITECTURE%==x86 (
Pushd %~dp0\stk-code\build-i686\bin\
supertuxkart.exe
popd
)
if %OS%==64BIT (
if %PROCESSOR_ARCHITECTURE%==AMD64 (
Pushd %~dp0\stk-code\build-x86_64\bin\
supertuxkart.exe
popd
)
if %PROCESSOR_ARCHITECTURE%==ARM64 (
Pushd %~dp0\stk-code\build-aarch64\bin\
supertuxkart.exe
popd
)
if %PROCESSOR_ARCHITECTURE%==ARM (
Pushd %~dp0\stk-code\build-armv7\bin\
supertuxkart.exe
popd
)