From b332d166c07ad5969b3988c31a1b83fe2705930a Mon Sep 17 00:00:00 2001 From: julesgrc0 Date: Wed, 21 Feb 2024 11:40:09 +0100 Subject: [PATCH] fix CMake flags for arm64-v8a architecture --- CMakeLists.txt | 2 +- src/core/bridge.h | 1 + src/screen/game.h | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37ccac4..b6d08f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ if(ANDROID) if(CMAKE_ANDROID_ARCH_ABI STREQUAL "armeabi-v7a") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16") elseif(CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfix-cortex-a53-835769 -mfix-cortex-a53-843419") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfix-cortex-a53-835769") endif() elseif(UNIX) set(RESOURCE_FILE ${CMAKE_SOURCE_DIR}/out/resource.pack) diff --git a/src/core/bridge.h b/src/core/bridge.h index e469090..dce5c46 100644 --- a/src/core/bridge.h +++ b/src/core/bridge.h @@ -34,6 +34,7 @@ typedef struct w_bridge { w_bridge *create_bridge(); void destroy_bridge(w_bridge *td); +void physics_update(w_bridge *td); #ifdef _WIN32 int WINAPI update_bridge(PVOID arg); diff --git a/src/screen/game.h b/src/screen/game.h index a9841a9..8d21e1c 100644 --- a/src/screen/game.h +++ b/src/screen/game.h @@ -6,10 +6,8 @@ #include "../terrain/break.h" #include "../terrain/chunk.h" +#include "../gui/action.h" #include "../gui/gui.h" #include "../gui/joystick.h" -#include "../gui/action.h" - -#define DAY_DURATION 60.0f void game_screen(w_state *state);