diff --git a/cmake/Platform.cmake b/cmake/Platform.cmake index 22602b4b..c8b32c1a 100644 --- a/cmake/Platform.cmake +++ b/cmake/Platform.cmake @@ -51,6 +51,10 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "MacOS") ${GEODE_LOADER_PATH}/include/link/libfmod.dylib ) + target_compile_definitions(${PROJECT_NAME} INTERFACE + -DCommentType=CommentTypeDummy + ) + set(GEODE_PLATFORM_BINARY "Geode.dylib") elseif (GEODE_TARGET_PLATFORM STREQUAL "Win32") diff --git a/loader/include/Geode/Enums.hpp b/loader/include/Geode/Enums.hpp index f9fae148..bf028f95 100644 --- a/loader/include/Geode/Enums.hpp +++ b/loader/include/Geode/Enums.hpp @@ -1,5 +1,7 @@ #pragma once +#include "DefaultInclude.hpp" + // thanks pie enum class SearchType { Search = 0, @@ -110,6 +112,11 @@ enum class CommentError { enum class BackupAccountError { }; +// Thanks cocoa! +#ifdef GEODE_IS_MACOS + #undef CommentType +#endif + enum class CommentType { Level = 0, Account = 1,