fix commenttype macos (thanks cocoa!)

This commit is contained in:
altalk23 2023-11-21 20:10:19 +03:00
parent 499876307c
commit 7796bfba9f
2 changed files with 11 additions and 0 deletions
cmake
loader/include/Geode

View file

@ -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")

View file

@ -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,