Skip to content

Commit 508d347

Browse files
committed
Fix compile with new modloader, change ID
1 parent d446e4b commit 508d347

File tree

4 files changed

+342
-354
lines changed

4 files changed

+342
-354
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
1313
set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
1414

1515
# compile options used
16-
add_compile_options(-frtti -fPIE -fPIC -fexceptions -fcoroutines-ts)
16+
add_compile_options(-frtti -fPIE -fPIC -fexceptions)
1717
add_compile_options(-Wall -Werror -Wextra -Wno-invalid-offsetof -O3)
1818
# Extra -Wno's that were not there originally to make it work
1919
add_compile_options(-Wno-unused-variable -Wno-unused-function)
2020
# compile definitions used
2121
add_compile_definitions(VERSION=\"${MOD_VERSION}\")
22-
add_compile_definitions(ID=\"${MOD_ID}\")
22+
add_compile_definitions(MOD_ID=\"${MOD_ID}\")
23+
# TODO: Implement more robustly
24+
add_compile_definitions(VERSION_LONG=1)
2325
add_compile_definitions(NEED_UNSAFE_CSHARP)
2426
add_compile_definitions(NO_VERBOSE_LOGS)
2527
# For performing debug logging of very hard to diagnose issues

0 commit comments

Comments
 (0)