fix isControllerConnected

This commit is contained in:
HJfod 2022-10-06 23:54:09 +03:00
parent 07733c6fac
commit a9f8adae66

View file

@ -4098,7 +4098,7 @@ class PlatformToolbox {
static bool isControllerConnected() {
#ifdef GEODE_IS_WINDOWS
return cocos2d::CCApplication::sharedApplication()->getControllerConnected();
#elif GEODE_IS_MACOS
#elif defined(GEODE_IS_MACOS)
// this is just gd.h
return reinterpret_cast<bool(*)()>(geode::base::get() + 0x27d1b0)();
#else