Skip to content

Commit cff4b80

Browse files
committed
ios fixes
1 parent 4e7a00f commit cff4b80

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
cmake_minimum_required(VERSION 3.21)
22
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4-
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
54
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
65

7-
project(argon VERSION 1.0.0)
6+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
7+
set(CMAKE_OSX_ARCHITECTURES "arm64")
8+
else()
9+
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
10+
endif()
11+
12+
project(argon VERSION 1.0.1)
813

914
file(GLOB_RECURSE SOURCES
1015
src/*.cpp

src/web.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ std::string getBaseServerUrl() {
5656
#elif defined(GEODE_IS_ANDROID32)
5757
static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version");
5858
originalUrl = (char*)(base::get() + 0x952E9E);
59+
#elif defined(GEODE_IS_IOS)
60+
static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version");
61+
originalUrl = (char*)(base::get() + 0x6af51a);
5962
#else
6063
static_assert(false, "Unsupported platform");
6164
#endif

0 commit comments

Comments
 (0)